[solved] contact form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
moisea
Forum Newbie
Posts: 13
Joined: Wed Nov 01, 2006 2:29 pm

[solved] contact form

Post 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]
Last edited by moisea on Mon Jan 22, 2007 7:07 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
Mohamed
Forum Newbie
Posts: 21
Joined: Fri Jan 19, 2007 6:59 pm
Location: Seattle

Post 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?
Post Reply