spires Posted May 23, 2007 Share Posted May 23, 2007 Hi I'm new to Iframes and am having trouble passing PHP varables from outside the Iframe to inside the Iframe. this is what i'm trying at the moment: main page <iframe src="listings_text.php?time_frame=this" NAME="ishort" width="385" height="290"> </iframe> I was thinking it would be something like this, but this is not working. <?php $time_frame = 'this'; ?> <iframe src="<?php echo 'listings_text.php?time_frame='.$time_frame.''; ?>" NAME="ishort" width="385" height="290"> </iframe> This is the page that the Iframe links to, This is where i'm trying to get the variable. <?php $time_frame = $_GET['time_frame']; echo $time_frame; ?> I hope this makes sence, Thank you for helping. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.