View Single Post
Old 10-26-2006, 11:05 PM  
infectd
Confirmed User
 
Join Date: Dec 2002
Location: Canerda
Posts: 1,122
PHP Help - Easy but not for me.

I need to capture a session variable from a URL. This is so basic its embarassing.

"In addition to capturing the referralCode and retaining it as a session variable, you will also need to include logic in your download link as:

IF sessionVar ?referralCode? NOT null
THEN DownloadLink = http://www.myurlhere.com?referralCode=<referralCode>
ELSE DownloadLink = http://www.myurlhere.com (or, you could go with another referralCode - a generic one"

What I've been reading is that I need to set a cookie and then drop some php. Any help here? Even if you send me to a working exmaple code I can figure it out.
infectd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote