|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PEAR QuickForm regex rule -
I have a field in which the user should fill in its name.
He or she should only be able to use letters and "-". How do I fix this? I've tried it out... Code:
$form->addRule('my_name', 'You may only use letters and - in the name', 'regex','([a-zA-Z0-9-])');
But that doesnt work. Please help... |
|
#2
|
|||
|
|||
|
RE: PEAR QuickForm regex rule -
|
|
#3
|
|||
|
|||
|
RE: PEAR QuickForm regex rule -
Brilliant - thank you!
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > PEAR QuickForm regex rule - |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|