Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001041

[PHP-DB] RE : [PHP-DB] Forms : Validating user input as integer From: boclair (boclair <email protected>)
Date: 04/08/01

Manuel,

Manuel Lemos <mlemos <email protected>> wrote in message
news:1303.498T2939T1165644mlemos <email protected>
| Hello boclair,
|
| On 05-Apr-01 01:58:24, you wrote:
|
| >I have a problem with a user input in a form required to be an
| >integer, creating a variable for a mysql query.
|
| >I have instances where integer, 0, is being typed as letter,o.
|
| You may want to try this PHP form generation and validation class
that does
| exactly what you need and more.
|
| http://phpclasses.UpperDesign.com/browse.html/package/1
|
|
| It does both client and server side validation. For the client side
it
| uses the isNaN(parseInt(value)) Javascript functions. For the
server side
| it uses the strcmp($value,strval(intval($value))) PHP functions .
|
|
| Regards,
| Manuel Lemos
|
| Web Programming Components using PHP Classes.
| Look at: email protected>?subject=Re:%20[PHP-DB]%20RE%20:%20[PHP-DB]%20Forms%20:%20Validating%20user%20input%20as%20integer&replyto=002501c0bff1$53248620$7ac22dcb <email protected>">mlemos <email protected>">http://phpclasses.UpperDesign.com/?user=mlemos <email protected>
| --
| E-mail: mlemos <email protected>
| URL: http://www.mlemos.e-na.net/
| PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp

I downloaded the files and am studying them.

Certainly comprehensive.

Many thanks

Tim Morris

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>