Topic RSS
Related Topics
12:11 pm
Hi there, love the plugin, love it!!
i have a multi form of 5, since not all of the fields are required so they wont be checked for illegal entries (its potently unsafe if its save to database), can i run one function to check for all possibilities and make sure no illegal chars/nums.. etc, were entered.
and
function isValid($str) {
return !preg_match('/[^A-Za-z0-9.#\\-$]/', $str);
}
// to validate
If i want to put it in to my_cforms_logic function, how do i loop it thought all data – field names dynamically, and then set to return an error on the client form where the error was found?
Can any one help me please?
Most Users Ever Online: 959
Currently Online:
62 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
tracedef: 43
mores: 21
Gyrus: 20
frozenwaste: 18
asuffredini: 15
photoworks: 14
Member Stats:
Guest Posters: 3569
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5172
Posts: 18416
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote








