TheLostGuru Posted June 12, 2007 Share Posted June 12, 2007 Can anyone tell me what's wrong with this? I am redirecting to the whovisitsme.php page and then getting all of these variables using the $_GET method. I am then sending them to flash. The only variable that gets sent is the name variable though. Can anyone see anything wrong with the below code? header('Location: http://tristage.siteburg.com/whovisitsme.php?name=MEME&ownerID=abc123&viewerID=aaabbb&age=18&country=United States&city=Orangeville&vsex=Male&photo=http://school.discovery.com/clipart/images/baseball.gif&userID=TheLostGuru&podize=1'); Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted June 12, 2007 Share Posted June 12, 2007 i think you need to encode the url Quote Link to comment Share on other sites More sharing options...
TheLostGuru Posted June 12, 2007 Author Share Posted June 12, 2007 How do I go about doing that? Quote Link to comment Share on other sites More sharing options...
suma237 Posted June 12, 2007 Share Posted June 12, 2007 Hi, $link=http://school.discovery.com/clipart/images/baseball.gif; header('Location: http://tristage.siteburg.com/whovisitsme.php?name=MEME&ownerID=abc123&viewerID=aaabbb&age=18&country=United States&city=Orangeville&vsex=Male&photo='.$link.'&userID=TheLostGuru&podize=1); Please try this Quote Link to comment Share on other sites More sharing options...
chigley Posted June 12, 2007 Share Posted June 12, 2007 urlencode() Quote Link to comment Share on other sites More sharing options...
TheLostGuru Posted June 12, 2007 Author Share Posted June 12, 2007 if I encode it, do I have to decode it? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted June 12, 2007 Share Posted June 12, 2007 Decoding of the URL is usually done automagically by the web server. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.