Ok guys ive been on this since 9pm and its now 5:30AM
I am stumped and after pouring over google I have no solved this issue
Situation:
the following is just for straight example so you guys can understand what I need
Page.php -- has a special division thats empty and on Link Click calls
Javascript to change inner.html to an IFRAME call
So the user clicks the link and then it shows the division and loads the IFRAME
The IFRAME Source is
iframe.php
in IFRAME.PHP I need to take the Session Variables that were set already in Page.php
all sessions work fine when not using Iframe (open iframe.php in its own window)
but doesnt work when its Iframed and sadly I have to use Iframe on this page
NOW the CATCH is -- I CANNOT use any POST or GET Values
the iframe src MUST be straight url to the page aka src="www.blah.com/iframe.php"
cannot use variables in the url
www.blah.com/iframe.php?sessid=blah etc..
IS it possible to do what I need Without passing variables via the url?
RECAP
Page1 has all session variables set, calls the iframe command when users presses a button, Iframe loads but DOES not have the Session data that was saved on Page1 -- and IFRAME cannot pass variables via the URL it must be a direct url to the page only
Hope i have explained this enough -- Below are some Code Snipplets
Page1.php
java used to set the HTML / IFRAME into its Div
Code:
<script>
function changeText(){
document.getElementById('iframediv').innerHTML = "<iframe scrolling='no' frameborder='0' margin='0' src='http://mypage.blah/iframe.php'></iframe>";
}
</script>
Code Snipplet from the iframe.php to get session variables FROM page1.php
Code:
$uid = $_SESSION["usersid"];
$postID = $_SESSION["postsid"];
$pid = $_SESSION["partnerid"];
$serverid = $_SESSION["serverid"];
$user_name = $_SESSION["username"];
Any help is appreciated very much guys..
Thanks
SangrelX