Announcement

Collapse
No announcement yet.

Form is frustrating me

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form is frustrating me

    Could some one tell me what is wrong with my contact us form ?

    Parse error: syntax error, unexpected '@' in /home2/chrisvw/public_html/contact_us.php on line 3



    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = softwareeditorial@googlemail.com;
    $mailsubj = "Software Enquiry";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form: or whatever else you want \n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    header("Location:http://www.softwareeditorial.com/contact_us.php");

  • #2
    Re: Form is frustrating me

    Sorted it out,

    Im feeling a bit tired my wife has just has a baby girl.

    Comment


    • #3
      Re: Form is frustrating me

      Problem is you deleted the " ".

      Try- "softwareeditorial@googlemail.com";

      Cheers,

      Andy
      PHP- is a blast!

      Comment


      • #4
        Re: Form is frustrating me

        Well congrats!!

        Didn't see that you had sorted it out yourself. Glad all is well.

        Get some sleep.

        Andy
        PHP- is a blast!

        Comment

        Working...
        X