View Full Version : Using Forms with Frames

Feb 16th, 2007, 01:52 PM
Hello everyone,
I hope you can help, I've never used frames before.

I have a program, index.php which has a form:
<form name="form2" method="post" action="editreports.php" onSubmit="window.open('edit.html', 'editreport','scrollbars=yes, status=yes, toolbar=yes, resizable=yes,width=800,height=600,left=150,top=50'); ">

this is edit.html:
<FRAMESET rows="20%,80%">
<FRAME name="fixed" src="menu.html">
<FRAME name="editreport">

editreports.php is a dynamic page reading the database based on choices in the <form>

I would like to have menu.html on the top and the dynamic page underneath.
At the moment the menu is displaying but it's immediately replaced by the contents of editreports.php

What is the best way to acheive this?
Many thanks

Feb 16th, 2007, 02:39 PM
I will use div instead.