On Sunday 26 February 2006 19:35, Sanket Medhi wrote:
What I am trying to do is use the index.php to act as the front page of the site, as well as be able to handle queries using the GET method. For example, http://localhost/index.php?search=somestring should work as well. That is, there might or might not be a query string. All I want to know is whether such a query string exists or not. And if yes, what is(are) the parameter(s) (in this case, search is the parameter).
<? echo '<pre>'; print_r( $_GET ); echo '</pre>'; ?>
put that in index.php and call it with different query strings for eg:
http://foobar.com/index.php?a=1&b=2&c=3
and see what you get ;)