PHP captcha coding
-
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.
-
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.
-
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?