tags:

views:

86

answers:

4

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     [email protected]
user_fname     sdf
user_lname     sdf
username       ssdfsdf
web_address

Trying a simple echo $_POST["mode"], I get nothing.
Also tried print_r($_POST), and that only gives me Array ( ) 1.

+1  A: 

Is it just "mode" or every variable? Have you tried printing the POST array?

Mike42
It's everything. I've tried `print_r($_POST)`.
Steven
+1  A: 

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.

Marius
Good point. Still, a comment, not an answer :)
Pekka
Yes. The plug IS using header("location"). The plugin was working fine before I updated the code with new code. The pugin works both on my local computer and on the developers test server.
Steven
+1  A: 

Try checking the array content's with:

print_r($_POST);
metrobalderas
+2  A: 

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".

GreenMatt
hmm.... good point. That didn't occur to me!
Steven
It's not THE correct answer, but one of many helping hands which helped me trouble shoot and discover the error in the plugin. :)
Steven