I just set up a local test system (Apache 1.3.26 running as a module, PHP4, mySQL) on a W2K machine. All working fine: accessing database, processing php, showing html, etc.
One problem, though: It seems my local server does not process POST/GET informations from a form.
Look at this:
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<form action="test.php?test=YES" method="post" >
<input type="Submit" name="Submit" value="Submit">
Saving this code as "test.php", then viewing it within my browser, $test is not printed. That is OK, as $test is not defined yet.
By pressing the "Submit" button, I'd expect "$test" to be defined on the reload of "test.php?test=YES", so there sould be printed "YES" then.
But it isn't. The Variable "$test" is still not known.
I tried "GET" as well. Then installed PHP as CGI executable. Didn't work.
BUT, when I loaded this code to my remote (hosted) server space, it did exactly what it should. "YES" was printed on pressing the submit button.
I understand there must be something missing within my local apache (or php?) configuration.
Having not much experience with server config, I just want to create the same config locally as I have remote, to do some developing.
Any hints ? Thanks a lot.