Re: Read Form values prior to submit?
| From: | Tim Rude | Date: | Sun, 28 Dec 2008 22:55:54 +0000 |
| Subject: | Re: Read Form values prior to submit? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285166@lists.php.net to get a copy of this message | ||
Thanks! I haven't played with javascript but it looks pretty
straight-forward. I appreciate the samples.
Tim Rude
--
"tedd" <tedd.sperling@gmail.com> 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