Pages

query string in php example

Monday, 18 March 2013

query string is a small amount of data on the url address followed by ? mark. along with the input control values if you want to send some extra information form one page to another page. we are using query string is the combination of name and value.
<form method ="post" action="page1.php?city=hyd&inst=php">
<input type="text" name="text1"></br>
<input type="submit" value="submit" name="submit">
</form>
<?php
echo $_request['city'];
echo $_request['inst'];
echo $_request['text1']; 
?>
 

Most Reading