Very simple php snippet
Cuz I always forget and keep rewriting the same thing taking as long each time…
//simple form
<form action=”index.php” method=”get”>
Enter a var: <input type=”text” name=”var” size=”3″ />
<input type=”submit” name=”submit” value=”GO” />
</form>//and simple results
<?php
if (isset($HTTP_GET_VARS[’var’])){
print “Your var is “.($HTTP_GET_VARS[’var’]);
}else{
print “No var set”;
}
?>
