Forums

PHP

This topic is locked

Url parameter

Posted 21 Oct 2003 00:48:02
1
has voted
21 Oct 2003 00:48:02 D.D.M. van Zelst posted:
How can i do this??
I want to pass the url parameter like ...?id=id also to the iframe.
I have a page with dynamic data on it which will be shown with the url parameter like above, but i also have an iframe on that same page that has to show me also dynamic data depended on that same url parameter.
In the iframe i defined a page wich holds the same recordset, also filtered with id is url parameter id. But when i view my page it will show all dynamic data exept the data that should be shown in the iframe.
I think somehow the url parameter is not passed trough the page that loads in the iframe.
Can someone explain me how to correct this??

Thnx
Dave


Edited by - davaze on 23 Oct 2003 19:26:50

Replies

Replied 23 Oct 2003 19:23:08
23 Oct 2003 19:23:08 D.D.M. van Zelst replied:
Isn't there anyone that can tell me how to pass an url parameter to an iframe. Or is the only way to do this, by putting it in a session variable.
Everything works perfect except for the iframe. This one keeps empty.



Edited by - davaze on 23 Oct 2003 19:25:14
Replied 27 Oct 2003 14:09:27
27 Oct 2003 14:09:27 Matt Machell replied:
Make sure the iframe code passes the url parameter from the main page to the page inside the iframe, something like:

<pre id=code><font face=courier size=2 id=code>&lt;iframe
src ="/default.php?id=&lt;?php echo $HTTP_GET_VARS['id']; ?&gt;"&gt;
&lt;/iframe&gt; </font id=code></pre id=code>


-Matt
Replied 28 Oct 2003 19:04:50
28 Oct 2003 19:04:50 D.D.M. van Zelst replied:
Yes it works, thnx a lot.
I knew it had to be something simple.
Thanks a lot!!

Reply to this topic