Re: Read Form values prior to submit?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux