Forum Moderators: coopster

Message Too Old, No Replies

Passing Variable to a page in Iframe

         

rehanazher

6:39 am on Feb 24, 2009 (gmt 0)

10+ Year Member



Hi,

I am trying to show a page in a HTML <iframe> but before loading that page I want to set a variable value.
I tried following:

<iframe src="slgrid/ccustomer.php?id=" <? echo $cat; ?> "width="100%" height="100""></iframe>

but can not get the value of id using $_GET['id'].

Any other ideas are also welcome please.

I am a little new in PHP and HTML.

Any help in this regard will be appreciated.

Thanks and regards,

coopster

12:22 am on Mar 3, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, rehanazher.

From which script are you attempting to get the value of the id variable? It should be the

slgrid/ccustomer.php
script.