parse error on action page

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

    • Apr 2008
    • 16

    parse error on action page

    Client ID 23892 008automotive.com

    please could someone check my code (below). I have changed my encoding to multipart/form data. I was getting just a blank e-mail as my first problem with no values on it. That has been replaced now with
    Parse error: syntax error, unexpected '<' in /home/odsfxomt/public_html/action.php on line 40

    I have checked line 40...seems OK to me (but i'm not an expert)

    I have placed the code between head tag (is that correct)? or should it be inside body tag?

    link to my page http//:www.008automotive.com/action.html

    Could somebody help please
    Thanks
    PS how can I delete my previous request, as i realised help help help doesn't help at all...
  • Paul008
    Corporal

    • Apr 2008
    • 16

    #2
    Re: parse error on action page

    sorry the code would help...........below...!!!

    <?PHP
    $mailto = "?????@008automotive.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Enquiry Form Submission";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$val\n";
    }

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #3
      Re: parse error on action page

      You have mised an entire part of the code:

      <?PHP
      $mailto = "youremail@yourdomain.com";
      $email = $HTTP_POST_VARS['email'];
      if ($email == "") {
      $email = $mailto;
      }
      $mailsubj = "Type your mail subject here";
      $mailhead = "From: $email\n";
      reset ($HTTP_POST_VARS);
      $mailbody = "Values submitted from web site form :\n";
      while (list ($key, $val) = each ($HTTP_POST_VARS))
      {
      if ($key!="submit")
      {
      $mailbody .= "$key : $val\n";
      }
      }
      mail($mailto, $mailsubj, $mailbody, $mailhead);
      ?>
      Navaldesign
      Logger Lite: Low Cost, Customizable, multifeatured Login script
      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

      Comment

      • Paul008
        Corporal

        • Apr 2008
        • 16

        #4
        Re: parse error on action page

        Thanks Naval design........solved that problem.
        I now get the error message:

        Parse error: syntax error, unexpected $end in /home/odsfxomt/public_html/action.php on line 149

        any ideas?
        Thanks

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #5
          Re: parse error on action page

          Did you add the missing } ???
          Navaldesign
          Logger Lite: Low Cost, Customizable, multifeatured Login script
          Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
          DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
          Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

          Comment

          • Paul008
            Corporal

            • Apr 2008
            • 16

            #6
            Re: parse error on action page

            All fixed............thanks pal.very much appreciated.....

            Paul.

            Comment

            Working...
            X