PDA

View Full Version : error parse in list menu


jeremias
11-24-2006, 10:11 AM
Hi.
I´m trying PHP Form demo before buy it.

In my test, I´ve a normal form html with several radio button, textfield, list/menu.

Is displayed the next error

Parse error: syntax error, unexpected T_STRING in /home/disseny7/public_html/forma.php on line 25

The line 25 is a list/menu.

So, I remove this list/menu and the error jump to the next list/menu in the form.


thanks
Jeremy

Kayla
11-24-2006, 04:19 PM
Difficult to diagnose without seeing the form. Did you follow the instructions in the software help file, 'preparing your form' ? Can you post a link to the form?

jeremias
11-24-2006, 06:56 PM
thanks Kayla.
this is the link for the html form http://www.dissenynet.net/test/forma.htm

you can see the error in line 22, this is the line 22 of the php file.

@$estado/provincia extranjera = addslashes($_POST['estado/provincia extranjera']);

thanks for you help

Jeremy

Kayla
11-25-2006, 08:02 AM
Hi,

Try replacing the forward slash with an underscore:

FROM:
<input name="estado/provincia extranjera" type="text" id="estado/provincia extranjera" size="24">

TO:
<input name="estado_provincia_extranjera" type="text" id="estado_provincia_extranjera" size="24">

It may be the forward slash that PHP does not like..

jeremias
11-27-2006, 06:27 PM
ohh thanks Kayla, your solution are correct and now is working.

thanks a lot
Jere