Page 1 of 1

passing a URL as a query string

Posted: Tue Aug 02, 2005 5:38 pm
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.

Posted: Tue Aug 02, 2005 5:48 pm
by timvw
Show us the code of ShowIFrame.php

Posted: Tue Aug 02, 2005 9:59 pm
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>