Forum Moderators: open

Message Too Old, No Replies

Help: Nested Forms on web pages

         

kingpoop

5:10 pm on Sep 29, 2003 (gmt 0)



Hello,
I am looking to do the following:
I have tried several techniques and all have failed.
Is this even possible?
Any Suggestions are greatly appreciated.

Thanks
Mark

<FORM NAME="frmOUTER" METHOD="POST" ACTION="PROC.ASP")

<FORM NAME="frmSubForm1" METHOD="POST" ACTION="S1.ASP">
...SOME CODE...
</FORM>

<FORM NAME="frmSubForm2" METHOD="POST" ACTION="S2.ASP">
...SOME CODE...
</FORM>

<FORM NAME="frmSubForm3" METHOD="POST" ACTION="S3.ASP">
...SOME CODE...
</FORM>

</FORM>

tedster

3:44 am on Sep 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld.

Sorry, you cannot put a form element inside another form element. Check out this W3C page [w3.org] -- #17.3

It says:

<!ELEMENT FORM - - (%block;¦SCRIPT)+ -(FORM) -- interactive form -->

and the red section there means that a form element cannot contain another form element.

I suppose it's better to ask what you're hoping to accomplish. There's always a way, but sometimes you need to think outside the box a little bit.