Re: Form Input Type
| From: | Jorge Alvarez | Date: | Thu, 02 Nov 2000 15:18:51 +0000 |
| Subject: | Re: Form Input Type | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4140@lists.php.net to get a copy of this message | ||
> > Is it possible that I could specify the data type of the field inside
the
> > FORM, like <Input Type="character or number only" ....> something like
that?
No, this is not possible. Forms are HTML-based objects and HTML itself does
not have validation capabilities.
But that's not a problem at all. You could use JavaScript to validate the
form on the client side, *before* it is sent to the PHP-enabled web server.
If you need a code example, drop me an e-mail and I'll send you one.
Cheers,
Jorge A.
Koos van den Hout <koos@kzdoos.xs4all.nl> wrote in message
news:20001020221143.B16080@kzdoos.xs4all.nl...
> Quoting Wee Chua who wrote on Fri, Oct 20, 2000 at 03:55:13PM -0400:
>
> > I just want the user able to enter number only. Anyone has ideas? Thank
> > you!
>
> You could:
>
> Use javascript to check on entry
> and still check in the script (javascript doesn't have to be enabled)
>
> Koos
>
> --
> Koos van den Hout, PGP keyid RSA/1024 0xCA845CB5 via keyservers
> koos@kzdoos.xs4all.nl or DSS/1024
-?)
> Fax +31-30-2817051 Visit my site about books with reviews
/\\
> http://idefix.net/~koos/
> http://www.virtualbookcase.com/
_\_V
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>