Date: 08/10/00
- Next message: Mark Godfrey: "Re: [phplib] ooohforms regex question"
- Previous message: nathan r. hruby: "Re: [phplib] Template Block problem {block} showing"
- Next in thread: Mark Godfrey: "Re: [phplib] ooohforms regex question"
- Reply: Mark Godfrey: "Re: [phplib] ooohforms regex question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I'm having a minor problem with a regex when using the form class.
Basically, I just want for the user to be able to put a "." (period) in the
field as well. I've tried "^[0-9a-z/-.]*$", and "^[0-9a-z/-\.]*$", but they
didn't work.
Here's what I have currently:
$form->add_element(array("type"=>"text",
"name"=>"company",
"size"=>"32",
"valid_regex"=>"^[ 0-9a-z/-]*$",
"valid_e"=>"company: Letters, numbers, dashes slashes, and periods only,
please",
"icase"=>"1"));
How do I get the "." to be recognized in the regex so that it doesn't cause
javascript errors and the like?
Thanks,
-matt
------------------------
Matthew R. MacIntyre
Webmaster, Newlix Corporation
http://www.newlix.com
Tel: 613.225.0516
Fax: 613.225.5625
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Mark Godfrey: "Re: [phplib] ooohforms regex question"
- Previous message: nathan r. hruby: "Re: [phplib] Template Block problem {block} showing"
- Next in thread: Mark Godfrey: "Re: [phplib] ooohforms regex question"
- Reply: Mark Godfrey: "Re: [phplib] ooohforms regex question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

