php - Two submit buttons - perform cgi on second -


i working on form allows user edit, add, , remove committees. in edit section, wrote php code allows user select (from drop down populated csv) name of committee , then, when first submit clicked, information committee automatically displays in fields of form.

the problem need cgi action linked second submit button @ end of form, once clicked, of information updated. button needs send in data. previous submit button php value of selected committee , info it. php-autofill feature (hopefully) make life easier user. php intertwined html having separate file tricky.

my question: can have 2 submit buttons in 1 form if form has action="something.cgi" , second button supposed action?

you need use either (a) use 2 separate forms separate action's, or (b) write js handler second button post different url


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -