I can't get variables from forms when I use post
Posted: Mon Jul 17, 2006 6:58 pm
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:
and here is the php code where I am trying to get the variable $message:
** register_globals = on
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')";