Enverex
22 Jun 2003, 09:14 PM
Trying to get a form to pass some data on, but its just not working.
Apparently the name of the entry box becomes the variable the value is stored in when the form gets passed on, but it doesnt seem to be working......
Form -
<form method="post" action="searcher.php">
<input type="text" name="GN">
<input type="reset" value="Clear">
<input type="submit" value="Find Game">
</form>
Passed on to -
<?php
echo $GN;
?>
Just does -
<b>Notice</b>: Undefined variable: GN in <b>C:\http\ac\amiga\searcher.php</b> on line <b>2</b>
Any ideas? As there is no reason that this shouldnt be working afaikt, as I have looked up about 500 examples now....
NS
Apparently the name of the entry box becomes the variable the value is stored in when the form gets passed on, but it doesnt seem to be working......
Form -
<form method="post" action="searcher.php">
<input type="text" name="GN">
<input type="reset" value="Clear">
<input type="submit" value="Find Game">
</form>
Passed on to -
<?php
echo $GN;
?>
Just does -
<b>Notice</b>: Undefined variable: GN in <b>C:\http\ac\amiga\searcher.php</b> on line <b>2</b>
Any ideas? As there is no reason that this shouldnt be working afaikt, as I have looked up about 500 examples now....
NS