Page 1 of 1

PHP and HTML help

Posted: Tue Oct 15, 2002 2:27 pm
by mettlehead
Hi,

I am setting up a form in html which will take the data and send an email through php, my form is done, but I get this error in my php script.

Warning: Unexpected character in input: ''' (ASCII=92) state=1 hardware.php on line 23

Parse error: parse error, unexpected T_STRING
hardware.php on line 23

The error come on text fields that I use math to calculate, I am not sure if they have to be strings or not. the state =1 may be mu checkbox. Any ideas?

Posted: Tue Oct 15, 2002 2:53 pm
by mr_griff
Can you post your code for us to see...

a little code

Posted: Tue Oct 15, 2002 2:54 pm
by phpScott
I don't off the top of my head but if you post a little of your code that shows the form and the php you are using to generate the email, it might help. If you are using javascript to make the calculation before the page is submitted it then int or string types won't make a dif as javascrript doesn't care about that sort of thing.

phpScott

Posted: Wed Oct 16, 2002 2:06 am
by twigletmac
It's possible that the error is not on line 23 but one before as PHP only reports a parse error when it can no longer parse the page, not necessarily where the error is in the code. So as the other have already said, we can't help you without seeing some code.

Mac