Results 1 to 6 of 6

Thread: parse error on action page
      
   

  1. #1
    Paul008 is offline Corporal
    Join Date
    Apr 2008
    Posts
    16

    Question 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...

  2. #2
    Paul008 is offline Corporal
    Join Date
    Apr 2008
    Posts
    16

    Default 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";
    }

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  4. #4
    Paul008 is offline Corporal
    Join Date
    Apr 2008
    Posts
    16

    Default 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

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  6. #6
    Paul008 is offline Corporal
    Join Date
    Apr 2008
    Posts
    16

    Default Re: parse error on action page

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

    Paul.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49