PDA

View Full Version : Submit button loads 2 pages in 2 frames?


CarlosSanchez
02-13-2003, 07:47 AM
I have a webpage with 3 frames - top, left, and main body. In the main body Frame, I have a form, with a form button that submits to a cgi form mail script.

My question is: If the user completes the form in the main Body Frame, upon clicking the Submit button, is there a way to load a different page in the Left Frame, and also load a different page in the main body Frame?

Any help is appreciated. Thanks!

timur
02-13-2003, 11:20 AM
<form action=yourScript.cgi onsubmit()='frames["left"].location.href = "dif1.html"; frames["main"].location.href = "dif2.html";'>
<input type=submit>
</form>

CarlosSanchez
02-14-2003, 02:14 AM
Thanks! However, I just realized my form is using a POST instead of SUBMIT. Is it still possible to do this? Thanks

cheesebagpipe
02-14-2003, 03:10 AM
<form action="main_frame_url" method="post" onsubmit="top.frames.left.location='left_frame_url'">
..............
..............
</form>