On Tuesday 11 February 2003 02:27, Edward Peloke wrote:
> IS there a way to only allow the user to type in numerics to a text field?
> I do not want to allow them to even type in anything unless it is a number.
> Basically, I don't want to allow them to enter hi and then I do checks and
> give them a warning that it isn't a number, I want to force it from the
> start.

You can use javascript to enforce it at the input stage. But ultimately 
there's nothing that can stop people from submitting whatever they want. If 
you value the integrity of your data you NEED server-side verification -- 
there's no substitute for it.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I'm sorry a pentium won't do, you need an SGI to connect with us.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to