code_junkie

why is the iframe contents empty?

Nov 13th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <html>
  2. ...
  3. <body>
  4. <table>
  5. <tr>
  6. <td>
  7. User info: <iframe id="SpControlFrame1" name="SpControlFrame1" src="javascript:'';"path_src="index.php?cmd=YYY" ></iframe>
  8. </td>
  9. </tr>
  10. </table>
  11. </body>
  12. </html>
  13.  
  14. switch ("cmd") {
  15. case ZZZ:
  16. include("foo.php");
  17. break;
  18. case YYY:
  19. include("blah.php")
  20. break;
  21. }
  22.  
  23. <?php
  24. //some funtions for processing
  25. ?>
  26. <html>
  27. <head>
  28. ...
  29. </head>
  30. <body>
  31. <input type="text" size="12" name="username">
  32. <input type="button" value="submit">
  33. </body>
  34. </html>
  35.  
  36. User info: <iframe id="SpControlFrame1" name="SpControlFrame1" src="index.php?cmd=YYY" ></iframe>
Add Comment
Please, Sign In to add comment