Re: Post without submit?

From: Date: Thu, 25 Jan 2001 23:24:46 +0000
Subject: Re: Post without submit?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36727@lists.php.net to get a copy of this message
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.


« previous php.general (#36727) next »