PDA

View Full Version : Using Forms with Frames



ccyarm
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:
<HTML>
<HEAD>
<TITLE>frameset</TITLE>
</HEAD>
<FRAMESET rows="20%,80%">
<FRAME name="fixed" src="menu.html">
<FRAME name="editreport">
</FRAMESET><noframes></noframes>
</HTML>

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

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