$Data = '<?php echo $_POST["name"]; ?>"<br>"<?php echo $_POST["Message"]>;'
i think that will work it will treat the whole line as one string then when its inputted into the new page it will work.
to get multiple shouts in the shout box you need to store the shouts in a database you can use a text file tho. basically its teh same but
PHP Code:
<?
$db_filename = "shoutsdb.txt";
$string_to_add = '<b>'.$_POST["name"].':</b><br>'.$_POST["Message"].'\n';
$handle = fopen($db_filename, 'a');
fwrite($handle, $string_to_add);
fclose($handle);
?>
Thats to add it to the database to get the data and get the shouts use another script
PHP Code:
<?
$show_shouts = 10;
$db_filename = "shoutsdb.txt";
$handle = @fopen($db_filename, 'r');
$array = explode("\n", fread($fp, filesize($db_filename)));
$i = 0;
foreach ($array as $shout){
if (i > $show_shouts){
exit;
}else{
echo $shout;
}
i++;
}
?>
if your feeling more adventuroius you can do a mysql one
http://www.oxyscripts.com/php/tutorials/17/0.php