dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Please help... I need to read a PHP variable in an iframe and am completely stuck.

  1. #1
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    372

    Please help... I need to read a PHP variable in an iframe and am completely stuck.

    I have a page with an iframe in it. Inside this iframe is a variable. I need to use this variable in the main page. How in the world do I read it out of there?

    I am using sessions in the inside page, but it does not seem to work. I am really stuck. Can anyone help me?

    Thanks!

  2. #2
    Join Date
    Nov 2008
    Posts
    2,477
    It depends entirely on where the script generating the iframe's content is in relation to the script generating the iframe itself. Given that sessions are not working for you, I assume they are on different servers, or at least different cookie domains?

  3. #3
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    372
    Hmm... they are on the same server, but in different folders. I would not think that these would have different cookie domains.

  4. #4
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    372
    So I JS'd my way out of this situation. I'm reading it out with getElementById.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles