Nigel wrote:
> <SCRIPT language='javascript'>
The language attribute is deprecated, use the type attribute instead:
<script type = "text/javascript">
> <form name='addFAQ' id='addFAQ' action='addFAQAction.pl' method='post'>
[snip]
> <input type="submit" name="update" value="Update Page"
> onClick=\"document.addFAQ.action='addFAQ.pl'\">
> <input type="submit" name="Submit" value="Submit FAQ"
> onSubmit='javascript:validate();'>
1. When you "update the page", you are still submitting the page.
2. The input element does not have an onsubmit event handler, the form
element does.
Personally, I discourage the use of multiple submit buttons, as it
usually seems unnecessary. You could for example, use a checkbox to
indicate you're "updating a page" instead.
|