473,327 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

_POST superglobal empty

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
5 3590
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Randell D. | last post by:
Folks, I test if my PHP should process form data by checking if $_POST is an array - However I always find its condition proves true - Why or alternatvily, what other method can one use to check...
10
by: Jack | last post by:
How would I add a variable that I will assign to a list of $_POST variables that I extract from a form? My form passes a value for $q. That works fine. What I want to do is run an if/else on it...
2
by: Quinonez | last post by:
i set up a multipage form about a month ago using Sessions everything worked well and i moved forward with working on other pages i just checked the form to make sure it is all working properly and...
14
by: billy.becker | last post by:
I need to save a wav file that is HTTP POSTed to a php page. What does PHP5 do automatically to a POSTed variable when it puts it in the $_POST superglobal array? I haven't been able to find any...
6
by: Jørn Dahl-Stamnes | last post by:
I got the following code: reset ($_POST); while (list($key,$val) = each($_POST)) { echo "$key => $val\n"; } But this prints out nothing. If I replace the code above with:
15
by: zorro | last post by:
greetings... I'm wondering what more advanced coders would think ot this: $_POST = clean($_POST); and now I can use POST directly: $sql= "select * from T1 where myvar='$_POST' " ;
7
by: amygdala | last post by:
Hi all, I'm starting this new project in which I'ld like to implement sort of a design pattern I have seen being used in the CodeIgniter framework. Basically, the site will examine the URI and...
4
by: mtuller | last post by:
I have a page that submits data to a database, and I want to make it so that if the page is refreshed, it doesn't submit the information again. I am trying to use unset the variables so that if the...
5
by: Gilles Ganault | last post by:
Hello As the user may type strings that contain verboten characters like apostrophes, I need to go through the $_POST array, and use addslashes() on each and every item But it doesn't make...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.