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'); Link to comment https://forums.phpfreaks.com/topic/55214-simple/ 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 Link to comment https://forums.phpfreaks.com/topic/55214-simple/#findComment-272943 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? Link to comment https://forums.phpfreaks.com/topic/55214-simple/#findComment-272945 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 Link to comment https://forums.phpfreaks.com/topic/55214-simple/#findComment-272956 Share on other sites More sharing options...
chigley Posted June 12, 2007 Share Posted June 12, 2007 urlencode() Link to comment https://forums.phpfreaks.com/topic/55214-simple/#findComment-272959 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? Link to comment https://forums.phpfreaks.com/topic/55214-simple/#findComment-273129 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 Link to comment https://forums.phpfreaks.com/topic/55214-simple/#findComment-273136 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.