Need help with PHP form script

Discussion in 'PHP' started by Lukas, Feb 12, 2007.

  1. #1
    I need a little help with a php formmail captcha script.

    I get this error after clicking on the submit button

    Parse error: syntax error, unexpected $end in /home/loanshop/public_html/submit/contact.php on line 470

    so I threw the contact.php into DW editor and line 470 is really the end.

    if you'd PM me I'll send the php script to you

    thanks for any help or suggestions.

    NOTE: it was working fine before I tried to implement the captcha form into an already existing form... those dam spam insects are sending junk to this form now.
     
    Lukas, Feb 12, 2007 IP
  2. grandpa

    grandpa Active Member

    Messages:
    185
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    75
    #2
    maybe some end bracket ( } ) is missing
     
    grandpa, Feb 12, 2007 IP
  3. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #3
    Post the file here, then I can tell you what exact is the problem.
     
    designcode, Feb 12, 2007 IP
  4. LanceT

    LanceT Peon

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    usually that means you messed up somewhere and theres a bracket that should be closed, or you have too many end brackets.
     
    LanceT, Feb 12, 2007 IP
  5. picasso

    picasso Peon

    Messages:
    48
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    it is a bracket thing. But just to make sure if you use
    $name = <<<EOM ******

    EOM;

    kind of value assignation, sometimes it doesnt work depending on the server.
     
    picasso, Feb 12, 2007 IP