Page 1 of 1

Form POST not working

Posted: Mon Aug 11, 2014 11:21 am
by donny
Hello,

I have a simple form and I am trying to POST results to the process page but nothing is coming up. I have PHP 5.2.

Code: Select all


<form action=process.php method=post>
<input type=text name=blah>
<input type=submit>
</form>

Code: Select all

first name: <?php print $_GET["blah"]; ?> <br>
this is just an example.

thank you

Re: Form POST not working

Posted: Mon Aug 11, 2014 11:24 am
by Celauran
5.2 is really outdated. You should definitely upgrade that to 5.5

That aside, you're sending the form via POST and checking $_GET. $_POST['blah'] should give you the expected result.

Re: Form POST not working

Posted: Mon Aug 11, 2014 11:26 am
by donny
that was a error i made when posting this thread. i have $_POST on my process page

ill upgrade to 5.5 now

Re: Form POST not working

Posted: Mon Aug 11, 2014 11:52 am
by donny
fixed it.. thanks a lot