Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two button onClick command within same <form> boundary problem.. Help!

Status
Not open for further replies.

mk2lee1

MIS
Jul 8, 2003
51
US
Hi, I have a <form> and within this form boundary I have 2 submit button. Each button have onClick commands which increases the variable(x++ and y++ respectively). Problem is when I click on one button that have onClick command of x++, when page reloads, both x++ and y++ occurs.
Does both onClick command is executed when the two button are within same <form> boundary?
Is there any where I could avoid this?
 
totally confused. can u be a bit more clear?

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top