By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,652 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,652 IT Pros & Developers. It's quick & easy.

_POST superglobal empty

P: n/a
Hi
Recently I have been developing a form that uses the _POST variable.

Today the _POST variable was empty everytime I submitted my form
however I changed the post method to be GET and the receiving _GET
variable contains the form variables. So does the _REQUEST but for some
reason the _POST variable has ceased to hold the variables.

Any reason why this would be?

Thanks
Dominic

Aug 30 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
lo************@hotmail.com wrote:
Hi
Recently I have been developing a form that uses the _POST variable.

Today the _POST variable was empty everytime I submitted my form
however I changed the post method to be GET and the receiving _GET
variable contains the form variables. So does the _REQUEST but for
some reason the _POST variable has ceased to hold the variables.

Any reason why this would be?
$_POST only holds values when the form request method is set to "post",
while $_GET contains the values of a form when the request method is
set to "get".

$_REQUEST contains all values from $_POST, $_GET and $_COOKIE (which
order is used is defined by the "variables_order" setting in php.ini).

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Aug 30 '06 #2

P: n/a
I agree
The Form was set to POST but the _POST is empty?

However when I set the Form to GET the _GET is full.

If I set the Form back to POST and I receive the Form data using the
following.
$about = $_POST['about'];

The _POST is still empty?

Why?

What could make the _POST stay empty?

Aug 30 '06 #3

P: n/a
lo************@hotmail.com wrote:
Hi
Recently I have been developing a form that uses the _POST variable.

Today the _POST variable was empty everytime I submitted my form
however I changed the post method to be GET and the receiving _GET
variable contains the form variables. So does the _REQUEST but for some
reason the _POST variable has ceased to hold the variables.

Any reason why this would be?

Thanks
Dominic
Do you have a url where we can look at it?

I've found Firefox's Live HTTP Headers extension helps a lot when
troubleshooting problems such as this.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 30 '06 #4

P: n/a
lo************@hotmail.com wrote:
I agree
The Form was set to POST but the _POST is empty?

However when I set the Form to GET the _GET is full.

If I set the Form back to POST and I receive the Form data using the
following.
$about = $_POST['about'];

The _POST is still empty?

Why?

What could make the _POST stay empty?
Is $_GET also populated?

And is your form tag really like this: <form method="post" ...>

Besides, without a test URL for us to see, we're basically just
guessing.

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Aug 30 '06 #5

P: n/a
Hello everyone who has helped me thus far.

What I can say is that I am unable to show you the address as it is a
private one at this stage. When I find the solution I will post it to
you so your time is not wasted.

Thanks to everyone.
Dominic

Aug 30 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.