Forum Moderators: coopster

Message Too Old, No Replies

register_global problem

$_POST is not working even when reg. global is off

         

manoj badola

3:52 pm on Mar 27, 2004 (gmt 0)

10+ Year Member



First of all I would like to thanks to all the members
for solving my problem regarding redirection.

I have php4.3.5 and when I passed the variable in the next page through $_POST then it will not working. And I don't know why.Due to that i have to pass it without it & keeping register global (on).

jatar_k

6:28 pm on Mar 27, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



When you try to pass the vars via $_POST what happens?

Are there errors? Are you accessing the variables like so $_POST['varname']?

If it works with register_globals on then I can only guess that you are not accessing them using the $_POST only by their name.

Another thing you could try is turn off register_globals and put extract($_POST) at the top of the script and see if it works that way.