Thanks! I haven't played with javascript but it looks pretty straight-forward. I appreciate the samples. Tim Rude -- "tedd" <tedd.sperling@xxxxxxxxx> wrote in message news:p06240817c57d610ba84a@[192.168.1.101]... > 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