Not able to retrieve $_POST values
I have order a plugin which works fine on my local computer and on the developers test server. But the plugin is not working on my prod. server.
After registretion开发者_运维问答, I should get $_GET = add_success
. But I'm getting edit_success
.
In the code, they are cheking different $_POST values, one of them being 'mode'.
Trying to output $_POST["mode"], gives me an empty result, even though I can see the data using Firebug:
default_role subscriber
license_agreement_page on
mode addRec
terms on
user_email spstieng2@hotmail.com
user_fname sdf
user_lname sdf
username ssdfsdf
web_address
Trying a simple echo $_POST["mode"]
, I get nothing.
print_r($_POST)
, and that only gives me Array ( ) 1
. Maybe I'm misunderstanding something, but if you're getting results in $_GET, you shouldn't be getting them in $_POST. Make sure the HTML form on the production server has method="post" instead of method="get".
Is it just "mode" or every variable? Have you tried printing the POST array?
Try checking the array content's with:
print_r($_POST);
Do you redirect the browser in any way, using header("location"); or rewriterules?
If you use header("location: otherpage.php"); then otherpage.php
will not receive the post data. You need to look into cURL to pass post data to a url.
精彩评论