PHP captcha coding

  1. #1
    thorn5150 is offline Newbie

    PHP captcha coding

    I am trying to write a captcha string into my PHP coding on one of my forms to stop bots from spamming me but I get this message when I go to my site now;
    Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING on line 216.
    here is the code on line 216 as it is now,
    <input name="bb_codeword" size=40 maxlength=8 value="">
    I'm not sure if anyone can help but I'd be much obliged if ya could.
    Thanx, Rich.


  2. #2
    Are oyu outputting that line with an echo or something?

    Then, chances are you should escape those quotes:

    <input name=\"bb_codeword\" size=40 maxlength=8 value=\"\">

    ... and oyu should probably oput the 40 and 8 into quotes as well, just to produce nice HTML.

  3. #3
    monkey56657 is offline Newbie
    Tackle the Web with $5.99 .COM's from Go Daddy!
    Hey.

    Altho that line isnt perfect i dont think it is the sole problem....

    Can you give 5/6 lines before and after that line please?

+ Reply to Thread