Jump to content

passing variable via url


ainoy31

Recommended Posts

I have this:

 

<a href="http://www.xxx.com/xxx.php?at=$at">Click here to pay for your flight by credit card</a>

 

on the xxx.php, i do $test = $_GET['at'];  when i echo $test out, there is no value.  it just displays $test on the screen.  I double checked the value of $at and there is a value there.  I am losing the value between the pages?

 

Thanks,

 

AM

I'm guessing that the xxx is just a generic place holder and not for a porn site :P

 

Anyways what I'd do is go to the page with that link, and hover over it to see if the link contains the $at variable and $at isn't blank. Cause from what you posted the code looks correct. Sounds to me like the variable is empty or is becoming empty before you attempt to pull it out of the $_GET array.

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.