Results 1 to 14 of 14

Thread: What does this message mean?
      
   

  1. #1
    KP123 is offline Master Sergeant
    Join Date
    Jul 2006
    Location
    Orlando, FL
    Posts
    69

    Exclamation What does this message mean?

    HELP PLEASE!!!

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/oqdaspqv/public_html/process123.php on line 2

    Parse error: syntax error, unexpected T_STRING in /home/oqdaspqv/public_html/process123.php on line 2

    When I hit the submit button this is what comes up on the error page. Website is www.jcconcretedesigns.com

    I have the process123.php uploaded and an error page exists.

    Can anyone explain what I have done wrong please??? I thought I had the forms sussed out but maybe not!!

    Thanks
    kp

  2. #2
    Aliens Anonymous is offline Special Status
    Join Date
    Jan 2006
    Location
    Dark side of the moon
    Posts
    1,161

    Default Re: What does this message mean?

    Quote Originally Posted by KP123
    HELP PLEASE!!!

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/oqdaspqv/public_html/process123.php on line 2

    Parse error: syntax error, unexpected T_STRING in /home/oqdaspqv/public_html/process123.php on line 2

    When I hit the submit button this is what comes up on the error page. Website is www.jcconcretedesigns.com

    I have the process123.php uploaded and an error page exists.

    Can anyone explain what I have done wrong please??? I thought I had the forms sussed out but maybe not!!

    Thanks
    kp
    open the file process123.php
    the first three lines of navals script should read.
    <?php
    $name = $HTTP_POST_VARS['name'];
    $email = $HTTP_POST_VARS['email'];
    you have changed or added something to these lines you will need to find and correct it.

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

    Default Re: What does this message mean?

    Well, this is the general script as modified by Andy128. Probably there is something missing. Please post here the excact script as you have it uploaded.

    Or, use the new Advanced BlueVoda Form Processor
    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
    KP123 is offline Master Sergeant
    Join Date
    Jul 2006
    Location
    Orlando, FL
    Posts
    69

    Default Re: What does this message mean?

    The script is
    <?php
    $name = $HTTP_POST_VARS['name'];
    $email = $HTTP_POST_VARS['email'];
    $comments = $HTTP_POST_VARS['comments'];
    if (strlen($name) == 0)
    {
    echo "It appears that you have forgot to fill in your name in the Name field. Please use the Back Button to return to the form and enter your name. Thank you!";
    exit;
    }
    if (strlen($name) >=30)
    {
    echo "The length limit for the Name field cannot exceed 30 characters / spaces. Please use the Back Button to return to the form and shorten this entry. Thank you!";
    exit;
    }
    if (strlen($email) == 0)
    {
    echo "The E-mail field is a required entry. Please use the Back Button to return to the form and enter a contact E-mail address. Thank you!";
    exit;
    }
    if (strlen($email) >= 45)
    {
    echo "The length limit for the E-Mail field cannot exceed 45 characters / spaces. Please use the Back Button to return to the form and shorten this entry. Thank you!";
    exit;
    }
    if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
    {
    echo "I believe that there is an error in the way you entered your E-mail address. Please check your entry and re-submit. Thank you!";
    exit;
    }
    if (strlen($comments) >= 300)
    {
    echo "The comments area is limited to 300 characters / spaces. It appears that you have exceeded that limit. Please use the back button to return to the form and shorten this entry.Thank you!";
    exit;
    }
    if (substr_count($comments , '@') > "2")
    {
    echo "For security reasons this text (comments) area limits the number of @ symbols that can appear within it. It would appear that you have exceeded that number. Please use the Back Button to return to the form and correct this. Thank you for your patience!";
    exit;
    }
    //SEND MAIL
    $mailto = info@jcconcretedesigns.com;
    $mailsubj = "Contact form from website";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Submission from:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    }
    mail($mailto,$mailsubj,$mailbody,$mailhead);
    echo "Thank you for visiting our site and filling out our form. We will get back to you very soon!";
    ?>

    I looked at the advanced blue voda forms and I found it confusing! Sorry!

    Thanks for your help

  5. #5
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: What does this message mean?

    The tutorial gave a mock form that had three elements- name, email, and comments. Your form has additional elements;
    telephone
    How did you hear about us
    Reason for contacting us


    So I would do a couple things here. First- change the element name
    "How did you hear about us" to a simple name like- "referred_by".
    And change the name of "Reason for contacting us" to "contact_reason".
    The reason is that it is simple and adheres to programing rules of having two words joined by and underscore.

    Second- I would declare the additional variables like so:
    $name = $HTTP_POST_VARS['name'];
    $telephone = $HTTP_POST_VARS['telephone'];
    $email = $HTTP_POST_VARS['email'];
    $referred_by = $HTTP_POST_VARS['referred_by'];
    $contact_reason = $HTTP_POST_VARS['contact_us'];
    $comments = $HTTP_POST_VARS['comments'];


    Give this a try. I can see nothing in the script itself that might cause the error other than what is mentioned above.

    Andy
    PHP- is a blast!

  6. #6
    KP123 is offline Master Sergeant
    Join Date
    Jul 2006
    Location
    Orlando, FL
    Posts
    69

    Red face Re: What does this message mean?

    Hi Andy

    I updated like you said and it still gives me the same error message.

    Script is now:
    <?php
    $name = $HTTP_POST_VARS['name'];
    $telephone = $HTTP_POST_VARS['telephone'];
    $email = $HTTP_POST_VARS['email'];
    $referred_by = $HTTP_POST_VARS['referred_by'];
    $contact_reason = $HTTP_POST_VARS['contact_us'];
    $comments = $HTTP_POST_VARS['comments'];
    if (strlen($name) == 0)
    {
    echo "It appears that you have forgot to fill in your name in the Name field. Please use the Back Button to return to the form and enter your name. Thank you!";
    exit;
    }
    if (strlen($name) >=30)
    {
    echo "The length limit for the Name field cannot exceed 30 characters / spaces. Please use the Back Button to return to the form and shorten this entry. Thank you!";
    exit;
    }
    if (strlen($email) == 0)
    {
    echo "The E-mail field is a required entry. Please use the Back Button to return to the form and enter a contact E-mail address. Thank you!";
    exit;
    }
    if (strlen($email) >= 45)
    {
    echo "The length limit for the E-Mail field cannot exceed 45 characters / spaces. Please use the Back Button to return to the form and shorten this entry. Thank you!";
    exit;
    }
    if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
    {
    echo "I believe that there is an error in the way you entered your E-mail address. Please check your entry and re-submit. Thank you!";
    exit;
    }
    if (strlen($comments) >= 300)
    {
    echo "The comments area is limited to 300 characters / spaces. It appears that you have exceeded that limit. Please use the back button to return to the form and shorten this entry.Thank you!";
    exit;
    }
    if (substr_count($comments , '@') > "2")
    {
    echo "For security reasons this text (comments) area limits the number of @ symbols that can appear within it. It would appear that you have exceeded that number. Please use the Back Button to return to the form and correct this. Thank you for your patience!";
    exit;
    }
    //SEND MAIL
    $mailto = "info@jcconcretedesigns.com";
    $mailsubj = "Contact form from website";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Submission from:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    }
    mail($mailto,$mailsubj,$mailbody,$mailhead);
    echo "Thank you for visiting our site and filling out our form. We will get back to you very soon!";
    ?>

    I have the error page saved as a php file - is that right?
    The script above is in the html box on the error page and is saved as process123php - both of which are published.

    This all worked with my first website and yet I am struggling with this one!!

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

    Default Re: What does this message mean?

    Your script is correct and works great for me (i tested it). So the problem has probably to do with how you have uploaded it. Did you upload it as a standalone script (which is the correct), or did you paste it in some page ?
    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!


  8. #8
    KP123 is offline Master Sergeant
    Join Date
    Jul 2006
    Location
    Orlando, FL
    Posts
    69

    Default Re: What does this message mean?

    Hi

    I saved it as a stand alone in notepad as process123.php

    I then pasted it onto the error page in the html box.

    I did this on the first web site and it worked before!!

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

    Default Re: What does this message mean?

    Please upload it as standalone file, using blueFTP. Paste the code in Notepad (the code is correct), go to Save as, Choose File Type All files, save it as process123.php. Then use BlueFTP to upload it on the server.
    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!


  10. #10
    KP123 is offline Master Sergeant
    Join Date
    Jul 2006
    Location
    Orlando, FL
    Posts
    69

    Default Re: What does this message mean?

    I did this already.

    When I go to FTP I can see the file there.

    Is the script supossed to be pasted on the error page in an html box?

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

    Default Re: What does this message mean?

    No, it is a standalone. If you want, use myform to send me your login details (as well as the url of the form). I will sort it out for you in the morning (it's 22:50 here, need some rest)

    Or i can install ABVFP for you, that will process any form for you
    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!


  12. #12
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: What does this message mean?

    Actually- it is designed to be pasted in an error page created with bv. In the instructions, opening an html box and pasting it is the correct procedure.

    The error page is called process123 and saved with a php extension.

    Sometime it is best to s**** the page and re-create. Sorry to say. But something got messed up somewhere.

    Give that a try and lets see what happens. It has worked in the past and should work now.

    Andy
    PHP- is a blast!

  13. #13
    Aliens Anonymous is offline Special Status
    Join Date
    Jan 2006
    Location
    Dark side of the moon
    Posts
    1,161

    Default Re: What does this message mean?

    Andy worked for me i designed my own page and pasted into a html and works fine.

  14. #14
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: What does this message mean?

    I have a feeling some extraneous type got caught up in the cut/paste or something. Perhaps the re-do of the page will met it out. Thanks Alien for running the test.

    Cheers and have a great day.

    Andy
    PHP- is a blast!

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