Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-08-2002, 08:25 PM #1
- Join Date
- Aug 2002
- Thanked 0 Times in 0 Posts
ONE FORM-- 2 buttons and 2 Actions???
I have a form with lot of fields and 2 buttons
One is a SUBMIT button and this follows the ACTION.Meaning when i click on SUBMIT it goes to servlet defined in the ACTION=
Now My requirement is that the SEARCH button which is besides the 1st Field on my Form. has a different servlet/different functionality other than the SUBMIT.
How do i define two seperate ACTIONS..on two seperate buttons on my form.
I have seen a submit and search in many forms .How do we do it.
VIJvijay...life is awesome!
10-09-2002, 09:20 AM #2
- Join Date
- Jun 2002
- Thanked 236 Times in 233 Posts
<input type="submit" name="btnSubmit" value="Submit" onclick="this.form.action='submitActionServlet'">
<input type="submit" name="btnSearch" value="Search" onclick="this.form.action='searchActionServlet'">
Tower of Hanoi Android app (Ad-FREE!)
Tower of Hanoi Android app (FREE!)
Tower of Hanoi Leaderboard
Samegame Facebook App
Samegame Facebook App Leaderboard
vBulletin 5 Floating Bar extension
vBulletin 5 Slideshow extension
vBulletin 5 Quote Selected Text extension
vBulletin 5 Profile Preview Tooltip extension