I recently rebuilt my system, and reinstalled all apache, php, mysql, etc. (specifically that;d be apache 1.3.27, php 4.2.3, mysql 3.23.53)
I can serve web pages, php, access the mysql, but...
I now have a problem where I cannot seem to access variables from the querystring, and I'd love some ideas on why this is.
Basically, I made a little form to test.
Below would be testform.html
<form action="testform.php" method="get" name="testform">
Range of data:
<input type="text" size="4" name="range_start">
<input type="text" size="4" name="range_end">
<input type="submit" value="submit it" name="submit">
</form>
when submitted it calls testform.php, below...
printf ("Range starts at: %s <br>", $range_start);
printf ("Range ends at: %s <br>", $range_end);
printf ("Submit value: %s <br>", $submit);
When I submit the form though, the php returns just the text of the printf statement, and does not enter anything for the variable, which it should be pulling from the querystring.
example querystring:
http://localhost/testform.php?range_start=1&range_end=50&submit=submit+it
and one last thing, if I add this code:
$data = $HTTP_SERVER_VARS['QUERY_STRING'];
echo $data;
it will echo the proper querystring, its just that my variables will not populate with the info...
any helpful tips?
-andrew