Click to See Complete Forum and Search --> : GET & POST not working with Apache + PHP4


Anon
09-29-2000, 09:09 PM
hi,
simply GET and POST methods are not working on my system. i have got the latest Apache and PHP win32 binaries installed. (Win2000 platform)

i have set up a small script which checks if the POST has worked or not, by using

if ($REQUEST_METHOD != 'POST') {
echo 'didnt work!';
}

and in the form i am using POST in FORM tags.

is there anything i have to do in .ini or the apache httpd.conf files?

i also have the PHPmyAdmin for graphical interface to monitor the db, which doesnt work either. whenever i click on the Table name it says 'database' not selected. when i know it is selected already!!

Anon
09-30-2000, 02:30 AM
Assuming that's all there is to your script, you need to set register_globals = On in your php.ini file. Or, alternatively, you can set track_vars = On and access the info from the $HTTP_*_VARS[] array. Read the comments in the php.ini file for more info.