Re: form

From: Date: Sun, 01 Apr 2001 05:45:39 +0000
Subject: Re: form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46494@lists.php.net to get a copy of this message
On 31 Mar 2001 20:33:56 -0800, LDL Enterprise <webmaster@ldlenterprise.com> wrote: > Could someone please give me a clue. I have a <input type=text> form > that pulls the quantity from a mysql database. I want the user to be > able to update the quatity by just entering the new quantity and when > they unfocus on the text box it will automatically update without > pressing a submit button. You could use JavaScript to have the form submit OnBlur, but that's going to be pretty slow and annoying - consider what would happen if the user is entering several fields and clicks on another field, intending to come back and change it... What effect are you trying to achieve? Just reducing the number of clicks needed to submit a form? If so, some browers will submit the form when you hit the enter key while in a text field, which might have the effect you're looking for without requiring any coding.

« previous php.general (#46494) next »