how can you grab the data if it is passed thru a url like that?
you mean somthing like
http://www.site.com/index.php?var=data
well in the index.php file just put this
<? echo $_REQUEST["var"]; ?>
that will print out data cause var has the string data
hope this helps
its not possible to grab it without specifying the php file?
like lets say the default url is index.php
how can you do http://www.site.com/folder/?test
to retrieve test from folder/index.php?
if the server is set up to return http://www.site.com/folder/index.php when http://www.site.com/folder is requested, you shouldn't need to specify the filename when passing parameters either, so http://www.site.com/folder/?test
index.php:
<?php echo $_REQUEST['test']; ?>
should be fine i think. did you try it?
Add index.php to the list of files your server will recognize as an Index page and www.blahblah.com/?data=elvis will work.