hello i got two vaildations on one form but can i have two submit buttons??
onSubmit="return checkcheckl(?)"
hello i got two vaildations on one form but can i have two submit buttons??
onSubmit="return checkcheckl(?)"
If you use
<form onsubmit="checkcheckl(?); checkcheckl2(?);">
then you only need one submit button.
Sam
Problem : Having 2 submit buttons submit to 2 different pages
Solution :
<form name="fruits" action="" method="post">
<input type="button" name="Apple" value="Give Me apples " onClick="document.veggie.action='get_me_veggie.php'; document.fruits.submit();" />
<input type=”button” name=”orange” value=”Give Me Oranges” onClick=”document.fruits.action=’get_me_fruits.php’; document.fruits.submit();” />
Here you go :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.