tqla Posted July 6, 2007 Share Posted July 6, 2007 There is one aspect of a survey that I need help with. When one completes the survey they are sent a personalized HTML email There is a link in the middle of this html email. I want the user to click on that link to display a new web page. This web page will display and should contain two variables from the survey. Specifically the users firstname and player id. Those variable are $firstName and $clubCard. The session will have been destroyed by now so I can't rely on them being available. How do I add the variables to the link in the email so that it passes to email first and then to the new page? Let's say this is the link to the new page: http://www.xxxxxxxx.com/reward.php Then how do I grab the variables from the link? I assume they are already converted to their values. Thanks! Link to comment https://forums.phpfreaks.com/topic/58766-solved-passing-variable-to-an-email-then-from-email-to-a-new-page/ Share on other sites More sharing options...
steelmanronald06 Posted July 6, 2007 Share Posted July 6, 2007 easy: http://www.xxxxxxx.com/reward.php?firstName=firstname&clubCard=playerid $firstName = $_REQUEST['firstName']; $clubCard = $_REQUEST['clubCard']; Link to comment https://forums.phpfreaks.com/topic/58766-solved-passing-variable-to-an-email-then-from-email-to-a-new-page/#findComment-291533 Share on other sites More sharing options...
tqla Posted July 6, 2007 Author Share Posted July 6, 2007 Ah Thank you steelmanronald06! Works great! Link to comment https://forums.phpfreaks.com/topic/58766-solved-passing-variable-to-an-email-then-from-email-to-a-new-page/#findComment-291550 Share on other sites More sharing options...
per1os Posted July 6, 2007 Share Posted July 6, 2007 lol I would highly suggest not clicking the xxxx link, well unless you want to see some pr0n! lol. Link to comment https://forums.phpfreaks.com/topic/58766-solved-passing-variable-to-an-email-then-from-email-to-a-new-page/#findComment-291552 Share on other sites More sharing options...
tqla Posted July 6, 2007 Author Share Posted July 6, 2007 :o Ooops! That was totally unintentional! I hope I didn't break a rule here! Sry. Link to comment https://forums.phpfreaks.com/topic/58766-solved-passing-variable-to-an-email-then-from-email-to-a-new-page/#findComment-291554 Share on other sites More sharing options...
per1os Posted July 6, 2007 Share Posted July 6, 2007 lol, well look at it this way, steelmanronald used it, and hes an admin. =) I just thought it was funny that it actually linked to a pr0n site. Link to comment https://forums.phpfreaks.com/topic/58766-solved-passing-variable-to-an-email-then-from-email-to-a-new-page/#findComment-291557 Share on other sites More sharing options...
steelmanronald06 Posted July 6, 2007 Share Posted July 6, 2007 hahaha! My bad. I was just doing it because i was using what i thought was a "dummy" link. LOL! Link to comment https://forums.phpfreaks.com/topic/58766-solved-passing-variable-to-an-email-then-from-email-to-a-new-page/#findComment-291560 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.