|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Thanks Sands,
Unfortunately, all existing forms are handled by FormMail Perl with JavaScript validation so I don't think I can make your solution work, unless you know otherwise? I use PHP for the "REMOTE_ADDR" display but that doesn't write to the form. I have been considering mass conversion to PHP but that would/will mean a lot of work for dozens of sites. Eek! Thanks again for the nice script that I will use in future.
__________________
Pleasure in the job puts perfection in the work. Aristotle (384-322 BC) |
|
||||
|
Then do it in JavaScript.
On the form submit button, direct it to a JavaScript function instead of directly submitting the form. This function can then search the post entry for the offending text. if it isn't there, call the forms submit function. You can use the same function for other form validation too, such as ensuring the poster puts in an e-mail address or other required field. From your post, it sounds like you are already calling a JavaScript function before form submission so this should be a simple addition to it. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |