Hello Tomās,
As Ken said, nested forms are not valid HTML, but you can come up with
similiar structure that looks like one form by using TYPE="BUTTON" and then
use the onClick event to submit the form. Generally, this is a personal
preference, I don't like to seperate functionality into two different ASP
files for different parts of a form but you could supply a HIDDEN element
and check for that value in say action.asp and then do response.redirect to
upload if the value exists.
John
> -----Original Message-----
> Subject: Nested forms
> From: "Tomās Jiménez Lozano" <tomas@v...>
> Date: Fri, 7 Dec 2001 21:38:33
> X-Message-Number: 1
>
> Hi friends,
>
> Is it possible to have nested forms in a HTML page??
>
> Is there any correct syntax to write something like this?
> <table>
> <form name="form1" method="POST" action="action.asp">
> <tr><td><input type="text" name="input1form1"></td><tr>
> <tr><td><input type="text" name="input2form1"></td><tr>
>
> <form name="form2" method="POST" action="upload.asp"
> enctype="multipart/form-data">
> <tr><td><input type="file" name="file1form2"></td><tr>
> <tr><td><input type="submit" value="upload it!"></td></tr>
> </form>
>
> <tr><td><input type="text" name="input3form1"></td><tr>
> <tr><td><input type="submit" value="submitform1"></td><tr>
> </form>
> </table>
>
> Tanks in advance
>
> Tomās