beginneratphp Posted September 12, 2007 Share Posted September 12, 2007 :-\ Hi, I have a link ending with: page.php?clientID=1&jobnum=12090701 and on page.php I have: $jobnum = $_GET['jobnum']; $clientID = $_GET['clientID']; echo $jobnum; echo $clientID; and it only prints the clientID. Any Idea why job number doesnt show up???? Link to comment https://forums.phpfreaks.com/topic/69030-multiple-get-variables-not-working/ Share on other sites More sharing options...
darkfreaks Posted September 12, 2007 Share Posted September 12, 2007 try using the $_REQUEST variable instead of get Link to comment https://forums.phpfreaks.com/topic/69030-multiple-get-variables-not-working/#findComment-347008 Share on other sites More sharing options...
micah1701 Posted September 12, 2007 Share Posted September 12, 2007 $_GET should work though. thats weird. what does your actual code look like -- maybe if you post it we can find some typo or something somewhere causing this to fail. Link to comment https://forums.phpfreaks.com/topic/69030-multiple-get-variables-not-working/#findComment-347012 Share on other sites More sharing options...
beginneratphp Posted September 12, 2007 Author Share Posted September 12, 2007 The uppermost of the php page (should work im sure!) <?php require_once('Connections/custjobdb.php'); ?> <?php $jobnum = $_GET['jobnum']; $clientID = $_GET['clientID']; echo $clientID; echo $jobnum; And the link: timelog2.php?clientID=<?php echo $row_rsjobs['clientid']; ?>&jobnum=<?php echo $row_rsjobs['jobid']; ?> client id goes thru fine, and the link changes fine to show the jobnum changing appropriately. Link to comment https://forums.phpfreaks.com/topic/69030-multiple-get-variables-not-working/#findComment-347018 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.