passing a URL as a query string

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
sman317
Forum Newbie
Posts: 10
Joined: Wed Jun 01, 2005 11:47 am

passing a URL as a query string

Post by sman317 »

Hi All,

I have a bit aof a problem with passing a URL as a query string to be displayed in an iframe. Here is what it would look like:

ShowIFrame.php?URL=http://www.mls.ca/PropertyResults.aspx? ... aID%3d6571

How ever reading the value of URL would return only:

http://www.mls.ca/PropertyResults.aspx?Mode=0

The odd thing is even if I replace the & with either & or with %26 i still get the same result.

Thank you all.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Show us the code of ShowIFrame.php
User avatar
sman317
Forum Newbie
Posts: 10
Joined: Wed Jun 01, 2005 11:47 am

Post by sman317 »

Hi Again,

Well it looks like I found the solution on my own. In my rush to ask the question I forgot to mention that the link to the page is opened via a dynamic flash button. And this button was the culprit. It would decode my converted & or %26 back to & in it's own code.

So here was my quick solution (done by had and not it code yet) to convert the & to %2526, let the falsh convert the %25 part of it to % so it would end up passing %26 which fixes all my problems.

Thanks tim for your anwser.

<SOLVED>
Post Reply