Hi All.
I'm trying to understand this bit of code:
in display.php:
<html>
...
<body>
<table>
<tr>
<td>
User info: <iframe id="SpControlFrame1" name="SpControlFrame1" src="javascript:'';"path_src="index.php?cmd=YYY" ></iframe>
</td>
</tr>
</table>
</body>
</html>
in another file, I have a switch statement:
main.php
switch ("cmd") {
case ZZZ:
include("foo.php");
break;
case YYY:
include("blah.php")
break;
}
blah.php:
<?php
//some funtions for processing
?>
<html>
<head>
...
</head>
<body>
<input type="text" size="12" name="username">
<input type="button" value="submit">
</body>
</html>
1) So, can some explain what is happening here? The iframe is embedded in the page and doesn't cause a reload or anything like that.
2) I'm trying to duplicate this functionality on another page but the iframe is always empty (i've verified this using the IE developer Toolbar)
Thanks Chris