I'm trying to do the following:
Start.php loads with an inline frame embedded in it that calls 1.htm.
The user clicks on a link on 1.htm which takes them to 2.htm within the inline frame.
Then the user clicks on an 'edit' button in a form located on start.php which sends the current URL of the inline frame (2.htm) as a variable.
***
So my code on start.php looks something like this:
$Submit=$_POST['Submit'];
if ($Submit!=="Edit"){
echo"<IFRAME NAME=screen SRC=\"$source\" width=800 height=400>
</IFRAME>";
} else if ($Submit=='Edit'){
echo"<IFRAME NAME=screen SRC=\"$newsource\" width=800 height=400>
</IFRAME>";
}
The form looks like this:
<script language='Javascript1.1'>
var screenurl=document.getElementById('screen').src;
document.write ('<form action=start.php?source='+screenurl+' method=post><input type=submit name=Submit value=Edit></form>');
</script>
When the page first loads I pass the $source variable the starting page URL (1.htm). Then when I click on a link on 1.htm (within the inline frame) and it goes to 2.htm and I click on the Edit button I would expect the URL to have start.php?source=2.htm in it, but it doesn't - it just keeps the same variable for source (1.htm).
The app is running here:
id: guest
pwd: guest
I have no idea if this will make sense to anyone... but if it does - HELP!! :S
Thanks!
Sherry
Start.php loads with an inline frame embedded in it that calls 1.htm.
The user clicks on a link on 1.htm which takes them to 2.htm within the inline frame.
Then the user clicks on an 'edit' button in a form located on start.php which sends the current URL of the inline frame (2.htm) as a variable.
***
So my code on start.php looks something like this:
$Submit=$_POST['Submit'];
if ($Submit!=="Edit"){
echo"<IFRAME NAME=screen SRC=\"$source\" width=800 height=400>
</IFRAME>";
} else if ($Submit=='Edit'){
echo"<IFRAME NAME=screen SRC=\"$newsource\" width=800 height=400>
</IFRAME>";
}
The form looks like this:
<script language='Javascript1.1'>
var screenurl=document.getElementById('screen').src;
document.write ('<form action=start.php?source='+screenurl+' method=post><input type=submit name=Submit value=Edit></form>');
</script>
When the page first loads I pass the $source variable the starting page URL (1.htm). Then when I click on a link on 1.htm (within the inline frame) and it goes to 2.htm and I click on the Edit button I would expect the URL to have start.php?source=2.htm in it, but it doesn't - it just keeps the same variable for source (1.htm).
The app is running here:
id: guest
pwd: guest
I have no idea if this will make sense to anyone... but if it does - HELP!! :S
Thanks!
Sherry