Target for form to open in same window

S

Simon Wigzell

I just want my form target to be another page but open it in the same
window. Here is my code for the 2 pages :

-------------------------------form1.htm------------------------------------
<html>
<body>
This is form 1
<form ACTION="form2.htm" METHOD="POST" target="self">
<input type="submit" value="Submit">
</form>
</body>
</html>
-------------------------------form2.htm------------------------------------
<html>
<body>
This is form 2
<form ACTION="form1.htm" METHOD="POST" target="self">
<input type="submit" value="Submit">
</form>
</body>
</html>
----------------------------------------------------------------------------
--

You'd think the same window would just switch pages back and forth as you
clicked the submit buttons but it doesn't work. Not only does the new form
open in a seperate window but it then claims that it is an invalid address
and won't display the page.

http://www.mississippiprinting.com/MPCNew/form1.htm

http://www.mississippiprinting.com/MPCNew/form2.htm

This is a stripped down example. I actually have a series of forms, the
acatual forms that come up are determined by the choices the user makes
within the previous forms. It is all working fine if I open separate windows
for each form/page but I'd prefer if they just opened in the same window.

What simple thing have I missed here? Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top