Sorry, just to be a bit clearer...  Suppose you wanted to associate it with 
a link, you could do something like the following:

<a href="#" onClick="javascript:doSubmit();">click here to submit</a>

Hope that helps.



At 03:22 PM 1/25/01 -0800, Richard S. Crawford wrote:
>Without knowing exactly what you want to do, I would try something like 
>the following in JavaScript:
>
>function doSubmit() {
>         document.form.submit()
>}
>
>Then associate the function with any sort of desired event.  In a project 
>of mine, I have it attached to a keypress function so that the form is 
>submitted when the user presses the enter key from the last form field.  I 
>suppose you could also put it in the BODY tag if you're feeling especially 
>adventurous.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to