Results 1 to 2 of 2

Thread: php link using variables

  1. #1
    Join Date
    Dec 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default php link using variables

    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:
    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.
    Last edited by moisea; 01-22-2007 at 04:24 PM. Reason: error

  2. #2
    Join Date
    May 2006
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    try this:

    PHP 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=\"print $continue;\">Click here to continue.</a>";
         }
         else 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •