Re: Form Input Type

From: Date: Fri, 03 Nov 2000 14:12:48 +0000
Subject: Re: Form Input Type
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-4180@lists.php.net to get a copy of this message
Jorge Alvarez wrote: > > > > 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. This form data could still regarded as 'user input'; thus possibly tainted. I look at javascript validation as a service provided by the client. Fast repsonse on improper input. But there probably should still be server side re-validation of user input. Mike D.

« previous php.db (#4180) next »