Hi this is such a basic thing, I use these all the time, but I have a page that wont pass data to the next page. I have tried a heap things over days, frustration has peaked.
form:
<form action='subq2.php' >
<input type='hidden' name='stid' value='$stid'>
<select name='eday'><option value='1'>1</option><option value='2'>2</option><option value='31'>31</option></select>
<select name='emonth'><option value='3'>Mar</option><option value='4'>April</option></select>
<input type='submit' value='Submit'>
</form>";
retrieving data on next page:
$xyx=$_GET["xyx"];
$stid=$_GET["stid"];
$ans=$_GET["ans"];
error:
Notice: Undefined variable: st in C:\wamp64\www\flightchecks\subq2.php on line 38 Call Stack # Time Memory Function Location 1 0.0002 403672 {main}( ) ...\subq2.php:0 ( ! ) Notice: Undefined variable: xyx in C:\wamp64\www\flightchecks\subq2.php on line 38 Call Stack # Time Memory Function Location 1 0.0002 403672 {main}( ) ...\subq2.php:0 ( ! ) Notice: Undefined variable: stid in C:\wamp64\www\flightchecks\subq2.php on line 38 Call Stack # Time Memory Function Location 1 0.0002 403672 {main}( ) ...\subq2.php:0 ( ! ) Notice: Undefined variable: ans in C:\wamp64\www\flightchecks\subq2.php on line 38 Call Stack # Time Memory Function Location 1 0.0002 403672 {main}( ) ...\subq2.php:0
i have tried looking online, grabbing code from all over the place, I cant get anything to work here.
thanks Quinton