[thelist] Dumb PHP question.

Eduardo Dominguez edmz at emonterrey.com
Wed Sep 13 18:39:44 CDT 2000


Regular expressions will do that. I am not good with regex, but i know
that is trivial. You should be able to find a regex that solves that
problem.

You should be using the ereg() function of php.

http://www.php.net/manual/function.ereg.php for more info.



-----Mensaje original-----
De: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]En nombre de Michael Barrett
Enviado el: Wednesday, September 13, 2000 3:40 PM
Para: thelist at lists.evolt.org
Asunto: [thelist] Dumb PHP question.


howdy howdy

I have a dumb PHP quandry.

I want to prevent users from entering anything but numbers (currency) into a
form, commas and periods/ decimals are ok.

here is the test URL
http://flexitimecd.industryimagebank.com/demo/custom_cd.html

thanks



-- Michael
-O^O-
 -


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list