PHP to Pass variable to next page

Status
Not open for further replies.

Kelowna

Regular Member
Joined
Oct 30, 2012
Messages
433
Reaction score
202
I am trying to track visitors locations and pass that info on to a 2nd page but do not have php knowledge to do so. I feel this is really simple for those in the know.

Say I have a visitor to my "Los Angeles" page, and they click over to apply page that has the following link...


Code:
<iframe src="https://website.com/app/iframe?aff_id=5&aff_utm_source=MY_CODE_HERE&product_names=product1,&bgcolor=#ef4541" frameborder="0" scrolling="no"></iframe>

I would like to have this iframe link change to show the city location to change
"&aff_utm_source=MY_CODE_HERE" to show "&aff_utm_source=Los_Angeles_CA"

1- what code do I need to place on say the "Los Angeles" page?
2- what code do I need to insert the "city name" into the "&aff_utm_source=MY_CODE_HERE" part of the url.

Willing to paypal someone $25 for the answer to this, and yes the pages are.php, of course the code would have to work in a test to be paid

Any help would be much appreciated, I am new to php so would need sample (cut & paste) type of answers, thanks.
 
Does the first page have a submit button?
You have a few options to do that.
One is using the form action method and using the location variable as a hidden input. You can also use cookies to store the location. Another long winded method is to use mysql and store the IPs' data and include the location but that uses a lot of ram if you have so many visitors. I can't think of more, just woke up from my bed lol.
 
I have someone working on this now. Did not realize I needed to be upgraded to Jr. VIP to respond to my own thread, fixed that. Thanks for the responses.
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top