Jump to content

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:

 

1?name=bobcrew8@gmail.com

 

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)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.