Page 1 of 1

I can't get variables from forms when I use post

Posted: Mon Jul 17, 2006 6:58 pm
by AdamK9
I am trying to get variables from a form and I want to use post instead of get. I tried using get and I was able to get the variables but when I use the post option I can no longer access the variables. I tried using $_POST['']; but it still wouldn't work for me.

Heres the form:

Code: Select all

<form action="?" method="post" style="margin-bottom:0" name="FBForm" enctype="text/plain">
						   		 <input name="action" type="hidden" value="feedback">
						   		 <textarea class="Feedback" name="message" wrap="physical"></textarea><br />
								 <input class="Feedback" type="submit" name="SendFeedback" value="Send">
						   </form>

and here is the php code where I am trying to get the variable $message:

Code: Select all

$Query = "INSERT INTO feedback VALUES ('', '$message')";
** register_globals = on

Posted: Mon Jul 17, 2006 7:18 pm
by Benjamin

Code: Select all

$_POST['message'];
Register globals is off.

Posted: Mon Jul 17, 2006 7:38 pm
by AdamK9
actually register globals is on and i tried using $_POST while register globals was on and off and both times it wouldn't work for me.

Posted: Mon Jul 17, 2006 7:53 pm
by Burrito
get rid of this:

Code: Select all

enctype="text/plain"

Posted: Tue Jul 18, 2006 12:06 am
by AdamK9
Thank you