Re: Read Form values prior to submit?

From: Date: Sun, 28 Dec 2008 17:02:43 +0000
Subject: Re: Read Form values prior to submit?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-285148@lists.php.net to get a copy of this message
At 9:41 AM -0600 12/28/08, Tim Rude wrote:
Using PHP, is there a way for me to read the values that a user has entered into the text fields of a <FORM> prior to the user clicking the submit button? Essentially what I want to do is make sure the user has filled in all three text fields on my form before allowing it to be submitted [to a third party website]. -- Tim Rude [PHP newbie]
Tim: Can not do that using php. Php is server-side and hasn't a clue as to what the user is doing until the user clicks the submit. If you want to check for user input in real-time, then you'll have to do that client-side with javascript. Here's an example: http://webbytedd.com/c/form-submit/ All the code is there -- use as you may. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#285148) next »