Topic RSS
3:06 pm
Please replace the ??? with your dat!
- URL to the FORM: http://findmeadebtsolution.co.uk/?page_id=3w
- The browser used: ???
- cforms version: Latest
- Your Wordpress version: Latest
[desc]:
Hi, I want to write some custom validation routines for my cforms – I know I can use reg expressions in the form creation but really want to be able to call a routine to validate the input and return something to the form indicating that that particlar field has failed.
So can someone give me a simple example to get me started.
If I have a text feld (e.g. Name) and want to validate it is a string and has more than 10 characters – how and where would I write my own routine to do this check? How would I return a value indicating that a field has failed validation – can someone give me a solid example.
I repeat – I know I can do this using regulrar expressions when I decalre the form – but want this to start me off.
Thanks
Jason
7:31 am
March 6, 2005
Offlineforum search: a couple of weeks ago, a user posted a solution for non ajax….
11:34 am
Just done a search on that item … and all that came up was my post.
Could you please give me a link.
Jas
PS cForms is increbile.
11:50 am
Got it ….
http://www.deliciousdays.com/cforms-forum/feature-…..38;ret=all
Now I have to try it out.
Jason
3:01 pm
This guy did it….
http://www.digitaltonic.co.uk/2009/09/08/customisi…..ss-plugin/
for non ajax mode, wonderfull…
i implemented a invitation key validation, which checks the database for valid keys.
i had to tweak the lib_validation.php … perhaps you like to add this tweak to the official release.
Yours Sven
PS: Besides … GREAT WORK Oliver !
Most Users Ever Online: 959
Currently Online:
71 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: 3552
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5159
Posts: 18392
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote











