Menu

Parse Error

Help
2006-01-30
2013-06-03
  • cindyatwork

    cindyatwork - 2006-01-30

    Hello,

    I have set up 2 forms and when you submit them you get Parse Errors. Can you please tell me how to fix this?

    http://iamsales.duaneforrest.org/phpform/use/Interview/form1.html

    Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/duanefor/public_html/iamsales/phpform/use/Interview/process.php on line 104

    http://iamsales.ca/phpform/use/Interview2/form1.html

    Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/duanefor/public_html/iamsales/phpform/use/Interview2/process.php on line 23

    ---

    Also, how do I edit where the form goes when you click submit (ie. I want to change the thank you page, and I also want to change the email address that will receive the form results). I looked in the html and there is no email address listed and also no thank you page. Where is this information stored?

    I hope someone can help!! Thank you so much.

    cindy@duaneforrest.com

     
    • TNTEverett

      TNTEverett - 2006-01-30

      These errors are usually due to you specifying variable names with a number for the first character.  You will either have to recreate the form without this or edit the form1.html and the process.php file.  I recomend the first option in most cases. 
      You can edit the thank you page in the process.php file but if you are going to recreate the form anyway just specify the new URL when you are creating the new form. 

       
    • cindyatwork

      cindyatwork - 2006-02-01

      I did what you suggested. I recreated the form from scratch. I still get this error message:

      http://iamsales.duaneforrest.org/use/use/interviewone/form1.html

      Parse error: parse error, unexpected ')' in /home/duanefor/public_html/iamsales/use/use/interviewone/process.php on line 104

      I have no numbers in my form.

      Cindy

       
      • TNTEverett

        TNTEverett - 2006-02-01

        Great little editor I think you will like.  Its free and has line numbers.
        http://hapedit.free.fr/

        It sounds like you just inadvertently removed the ending ) from the if statement. 
        I'll be off line for a few hours.  I'll catch up with you later.

         
      • TNTEverett

        TNTEverett - 2006-02-02

        This is not a numbers problem.  This is a syntax problem.  Send me your process.php file.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.