Click to See Complete Forum and Search --> : POST variables not worrking!


Anon
07-06-2002, 01:12 PM
Hello,

I've been struggling with this for a few hours but haven't got anywhere.

I've installed PHP4 for Apache 1.3, it basically works fine. I've set

register_globals = On

So that I can just reference GET and POST variables directly by name (I know this isn't the best way of doing this).

The problem is that GET varaibles work but POST variables don't.

I've searched through the archive but most people say switching this on is enough. (I have also switched the magic_ settings on)

Thanks in advance

Ian

Anon
07-06-2002, 01:56 PM
Hello,

OK as soon as I posted the message I fixed the problem!

Anyway this might help someone:

When you switch on the global variables in the .ini file you need to restart the web server for the changes to be detected. (As expected). However this meant that although the GET varibles were working the POST ones weren't. I found I need to restart Windows then the POST varibles worked fine.

Don't ask me why, it just worked!

Ian

Anon
07-08-2002, 07:59 AM
Thanks for your post Ian I was having the same problem turning on Register_globals fixed the problem