Jump to content

[SOLVED] Having a problem with carrying a variable over to an iframe.


JSHINER

Recommended Posts

Do you see it in the HTML source when viewed in the browser?  If so, it's a problem in your page.php script.

 

FYI, your description is a little vague.  What does "does not pull it up" mean?  Do you see nothing in the iframe?  Do you see the wrong content?

Link to comment
Share on other sites

<iframe src="http://www.site.com/page.php?user=<?php echo $_SESSION['id']; ?>" frameborder="0" scrolling="no" height="290" width="310"></iframe>

 

Which displays in the HTML as <iframe src="http://www.site.com/page.php?user=17" frameborder="0" scrolling="no" height="290" width="310"></iframe>

 

But nothing comes up in the iframe.

 

And when I go to http://www.site.com/page.php?user=17 the page comes up fine.

 

 

Link to comment
Share on other sites

see if you can do this in one page:

 

<iframe name="myframe" src="http://www.site.com/page.php" frameborder="0" scrolling="no" height="290" width="310"></iframe>

<br><br>

<a href="http://www.site.com/page.php?user=17" target="myframe">User 17 Wants In</a>

 

just for testing purposes - see if this works...........

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.