Jump to content

Multiple Get Variables not working


beginneratphp

Recommended Posts

:-\

 

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.