running javascript on php page or 2 submit buttons in 1 form
Posted: Sun Jun 08, 2003 10:04 am
HI
i have a function in javascript
and called up with
but cant seem to get this to work on a PHP page. According to post i have read there shouldn't really be a problem. I have also tried to make a tick all in php instead but donot undersatnd how to use 2 submits in 1 form.
Any help is appreciated, thanks.
i have a function in javascript
Code: Select all
function tickAll() {
document.form1.q1.checked = true;
document.form1.q2.checked = true;
document.form1.q3.checked = true;
}Code: Select all
<INPUT type="button" name="submit" onClick="javascript:tickAll()" value="Accept All" >Any help is appreciated, thanks.