what's wrong with this php code ?

fox

New member
$E_mail_adresa=filter_input(INPUT_POST, "E-mail adresa");

the error we're getting is : "Parse error: parse error in C:\wamp\www\prijava.php on line 12"
more info :
this is the xml code related to this line :

<textinput name="E-mail adresa" x="89" y="428" w="111" h="22" initvalue="" bkcolor="0xFFFFFF" fontname="Arial" fontcolor="0x000000" required="true" emailbox="true" editable="true" restrict="email" />

on line 12 in php file , is this code $E_mail_adresa=filter_input(INPUT_POST, "E-mail adresa"); and the error reported is parse error .

This isn't my project , it's from my friend and he doesn't know what's the problem , I think this is correct but it still reports an error and we do not understand why .

There are 11 lines like this, just getting the data from other fields, before this one and they all work fine
 
That's not a lot of info to go on. One thing that is strange is your variable names, if you start writing big pages, keep them simple (PHP is not so good at namespaces)

But, if this is form handling, on the handling page, then you want $_POST to get the variables passed by post.

Play with GET first, so you can see what you are passing where, and when you get it right, just change over to POST again.
 
That's not a lot of info to go on. One thing that is strange is your variable names, if you start writing big pages, keep them simple (PHP is not so good at namespaces)

But, if this is form handling, on the handling page, then you want $_POST to get the variables passed by post.

Play with GET first, so you can see what you are passing where, and when you get it right, just change over to POST again.
 
Back
Top