|Liam Delahunty: Home||Tips||Web||Contact|
Think I deserve a present? See my Amazon Wish List
Firstly click here to add some variables to this page. If you look at the location bar, you will see the URL has changed to ?a=123&b=qwe&c=def.
The above link looks okay, and has all the vars, but when you actually click the link for the new window, only the first variable appears in the important (to the new form) $q string. The others go, but I'd need to perform a foreach to see them all. I want to be lazy and just process the string, not have to think about the _GET and the vars it contains.
So I actually replace the & signs with a semi-colon first and then send that in the string, like so...
Then in the new page, email_to_a_friend.php, I perform the opposite eregi_repalce to change al the semi-colons back into & so the browsers/email clients understand.
SERVER VARIABLES IN URLs