Jump to content

Archived

This topic is now archived and is closed to further replies.

KittyKate

Multiple forms, one submit

Recommended Posts

Alright, here is the setup:

I have a page that lists a bunch of books. I want to be able to edit none, one, or many of the book titles at my choice (individual edit buttons on each book triggers a javascipt that generates a form with that book's information already entered). I want to be able to reset the information for an individual book, but submit everything at the same time. Is it possible?

My original idea (to help illustrate the notition) doesn't work. I didn't really expect it to, but it was a thought:

[code]<html>
<body>
<form name='an' id='ai' action="form_test.php" method="get">
<input type='text' name='bn' id='bi'>
<br>
<form name='cn' id='ci'>
<input type='text' name='dn' id='di'>
<input type='reset' value='reset'>
</form>
<br>
<form name='en' id='ei'>
<input type='text' name='fn' id='fi'>
<input type='reset' value='reset'>
</form>
<br>
<input type='submit' value='submit'>
</form>
</body>
</html>[/code]

Any thoughts?

Share this post


Link to post
Share on other sites
I don't think you can do so, but you could just put all the contents in ONE form.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.