Log in

View Full Version : php link using variables



moisea
01-22-2007, 04:24 PM
hello, i am new to php and i am trying to create a link to send me back to my homepage using a variable. but i am getting the following parse error.

Parse error: syntax error, unexpected '?' in /home/.malcsi/moisea66/tyreese.upfrontec.com/mailer.php on line 255
here is the code.

if(mail($to, $subject, $body))
{
echo "Thanks <b>$name</b>, Your message has been submitted to <b>$to</b>!"; //display the message to say that your message was sent to....
echo "<a href="<?php print $continue; ?>">Click here to continue.</a>";
}
else

need some help please.
many thanks.

jonnyynnoj
01-22-2007, 06:40 PM
try this:


if(mail($to, $subject, $body))
{
echo "Thanks <b>$name</b>, Your message has been submitted to <b>$to</b>!"; //display the message to say that your message was sent to....
echo "<a href=\"print $continue;\">Click here to continue.</a>";
}
else