oracle765 Posted February 8, 2014 Share Posted February 8, 2014 Hi All I have two webpages which I have attached some of the code, when I try to echo out the variables they seem to not be working, am I doing something wrong here thanks getnotworking.txt Link to comment https://forums.phpfreaks.com/topic/286038-get-variables-not-working/ Share on other sites More sharing options...
PravinS Posted February 8, 2014 Share Posted February 8, 2014 your form method is post, so use POST while getting variable data $destinationCode=$_POST['destinationcode']; $numberofadults=$_POST['numberofadults']; $numberofchildren=$_POST['numberofchildren']; $startdate=$_POST['stardate']; $enddate=$_POST['enddate']; Link to comment https://forums.phpfreaks.com/topic/286038-get-variables-not-working/#findComment-1468172 Share on other sites More sharing options...
oracle765 Posted February 9, 2014 Author Share Posted February 9, 2014 Hi PravinS Thanks for that I can get some of them to work now, because someone else wrote this code I cannot figure out how to get the ages to pass through and also the startdate and enddate are still empty, the rest are fine. you can see what I mean by the ages as they are dynamic somehow with the drop down box on compareandchoose.com.au/insurance.php I have included my webpage for clarity sake insurance.php Link to comment https://forums.phpfreaks.com/topic/286038-get-variables-not-working/#findComment-1468242 Share on other sites More sharing options...
oracle765 Posted February 9, 2014 Author Share Posted February 9, 2014 Update managed to get the startdate and enddate through I had spelt them wrong as in stardate endate but still cannot figure out how to pass the ages through Link to comment https://forums.phpfreaks.com/topic/286038-get-variables-not-working/#findComment-1468244 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.