Jump to content

[SOLVED] Get variables not working correctly


sillysillysilly

Recommended Posts

I am trying to pass two variables through GET that I do in a link.  The problem is that they don't come across correctly.  here is how I pass the variables.

 

echo "<a href='adrepoststep2.php?id={$row['adid']}?name=$emailaddress'>{$row['adid']}</a><br />";

 

Then in the that loads I try to read those two variables out with this:

 

$adid =$_GET['id'];

$email=$_GET['name'];

echo $adid;

echo "<br>";

echo $email;

 

What displays is:

 

[email protected]

 

the 1 is the ad ID, why is it displaying the ?name=  But when the rest of my script runs it acts like it does not know what $email is.

 

Thanks for your help guys (and gals)

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.