Page 1 of 1

[solved] contact form

Posted: Mon Jan 22, 2007 11:55 am
by moisea
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.

Code: Select all

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.[/quote]

Posted: Mon Jan 22, 2007 11:58 am
by feyd
Notice something funny looking when it's colored?

Code: Select all

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

Posted: Mon Jan 22, 2007 1:34 pm
by Mohamed
look at this way

Code: Select all

<?php
        
       <?php

        ?>

?>
do you think that is valid php statements?
what is wrong with the code?