Re: can someone please give information on how to do this?
Repeating the names of elements is okay, but each form should have a unique name. Each id on a page needs to be unique, but sometimes names need to be duplicated, such as using radio button or checkbox groups.
As far as the example I posted goes, in a live situation I would be having the forms both sumbit to the same page and having the name of the button tell the script which action to take so I may use different names to make the script easier to follow, or I may make them the same so I can reduce the amount of code.