getting query string values
Posted: Tue Dec 15, 2009 4:28 am
Hi,
I am a novice with php. We r doing php on lamp. The link below goes to an article which shows how to use the query string, but unfortunately my script does not work:
http://ditio.net/2008/06/12/php-query-string/
this is the code i've used:
I am typing the url like http://mydom.com/test/qstr.php?text=sometext
Is this a config problem?
I am a novice with php. We r doing php on lamp. The link below goes to an article which shows how to use the query string, but unfortunately my script does not work:
http://ditio.net/2008/06/12/php-query-string/
this is the code i've used:
Code: Select all
//This file is qstr.php
<?php
echo 'Query string obtained = '
#echo $_GET['text']
echo $_SERVER['QUERY_STRING']
?>Is this a config problem?