Hi there, I wonder if you can help?
I am VERY new to PHP. I've been trying to wade through the forums, but the further I go, the more confused I am getting!
I've ordered a couple of books from Amazon, but I'm desparate to get this thing working now...
I want to do the following in PHP. I want to read a variable that has been passed to a webpage. The variable is a referrer code. i.e.
http://www.test.com/index.php?refcode=code1
Index.php has a hyperlink to another page say myform.php . I want the hyperlink to pass that same variable along only if the variable exists obviously...
THEN on the myform.php page, I have a form. I want the refcode (if it exists) to be put in the "Referrer code" field.
How the heck do I do this?
Many thanks
Chris