Jump to content


Multiple forms, one submit

  • Please log in to reply
1 reply to this topic

#1 KittyKate

  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 03 August 2006 - 03:58 PM

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:

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

Any thoughts?
PHP Version 4.3.2
MySQL version unknown (greater or equal to 3.23)

#2 Daniel0

  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 07 August 2006 - 02:36 PM

I don't think you can do so, but you could just put all the contents in ONE form.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users