Code: Select all
$name = $_POST['name'];
echo <<<EOT
hey $name! You have no friends! bwahahaha.. im tired!
EOT;Moderator: General Moderators
Code: Select all
$name = $_POST['name'];
echo <<<EOT
hey $name! You have no friends! bwahahaha.. im tired!
EOT;As Nay said, put it into curly quotes:LiLpunkSkateR wrote:ya I've found $_POST['something'] not to work, so i convert it to a variable first.Code: Select all
$name = $_POST['name']; echo <<<EOT hey $name! You have no friends! bwahahaha.. im tired! EOT;
Code: Select all
echo <<<EOT
hey {$_POST['name']}! You have no friends! bwahahaha.. im tired!
EOT;Code: Select all
$n1 = "0";
$the_num_num = "1";
while($_GET['number_of_links']>$n1)
{
Print <<< EOT
<a href={$_POST['LU_$the_num_num']}>{$_POST['LT_$the_num_num']}</a>
EOT;
$n1+;
$the_num_num++;Code: Select all
$foo = 'world';
echo "hello $foo";Code: Select all
hello worldCode: Select all
echo 'hello '.$foo;Code: Select all
echo 'hello $foo';Code: Select all
hello $fooCode: Select all
$_POST['LU_$the_num_num']Code: Select all
$_POST['LU_'.$the_num_num]