tags:

views:

39

answers:

1
+5  A: 

I would say, that form names and then $_POST variables have to have same case - they are case sensitive.

And you are having lowercase names in form and checking uppercase variables in $_POST

As c0mrade pointed out, do

var_dump($_POST);

and it will tell you what variables are really going to your script.

Adam Kiss
can you give me an example of this var_dump. Please, Im just a beginner
<input name="hnum" type="text" id="hospnum" maxlength="4"> note that id is different than name, can this result in post variables not arriving to the server???
Jhonny D. Cano -Leftware-
@user22... I just gave you :] on the top of your php script, that goes through information posted in form@Jhonny - It should not, it's just a good practice to give to inputs the same name and id -> it's less mess in working with site/app later.
Adam Kiss