Forums
This topic is locked
Validating a Form Field for a string before insert
08 Nov 2003 23:11:25 Al Patel posted:
This seems like a relatively simple thing, but I can't figure out how to do it. I have a basic form that submits an email body field. I want to validate that the body field doesn't contain certain keywords before I write it to my DB. How can I do this? The standard UD form validation options don't have any features to handle this.- - - THIS STUFF ROCKS !!
Replies
Replied 09 Nov 2003 08:10:32
09 Nov 2003 08:10:32 Dave Clarke replied:
try this extension from webassist.com www.webassist.com/Products/ProductDetails.asp?PID=4 it allows you to enter words that you want checking, although you need to have this extension too www.macromedia.com/cfusion/exchange/index.cfm?view=sn121&extID=100630
Dave
ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Edited by - Davecl on 09 Nov 2003 08:11:40
Dave
ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Edited by - Davecl on 09 Nov 2003 08:11:40
Replied 14 Nov 2003 10:28:16
14 Nov 2003 10:28:16 Martin Scullion replied:
Hi There
How about writing a small routine which reads in data from either a file or database table containing your forbidden words loads them into an array and then checks for the presence or otherwise of these words. So if you wish to add more words it's just a matter of updating a table or file.
Look into the FileSystemObject for managing files and the instr function for checking on the words.
Hope this is of some help
How about writing a small routine which reads in data from either a file or database table containing your forbidden words loads them into an array and then checks for the presence or otherwise of these words. So if you wish to add more words it's just a matter of updating a table or file.
Look into the FileSystemObject for managing files and the instr function for checking on the words.
Hope this is of some help
Replied 14 Nov 2003 13:33:56
14 Nov 2003 13:33:56 Janusz Jasinski replied:
Hi,
maybe google can help? Just type in form validation
or maybe go to
www.hotscripts.com
Janusz
======================
janusz.monkey-it.co.uk
www.xlibris.co.uk
ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe
maybe google can help? Just type in form validation
or maybe go to
www.hotscripts.com
Janusz
======================
janusz.monkey-it.co.uk
www.xlibris.co.uk
ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe