Really the best way is *both*.
JavaScript is much nicer from a user interface point of view.
But if the validation is important you need to do it again on
the server, because you can't guarantee the user has JavaScript
running in their browser.

Nick

-----Original Message-----
From: W Luke [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 12:39 AM
To: CF-Talk
Subject: Textbox validation


Hi,

On one textbox I need to prohibit users entering more than one word - I
don't want them to enter a space.  What's the best way of doing this -
Javascript, or Cold Fusion after the form has been posted?

Thanks.

Will
--
[EMAIL PROTECTED] -=- www.lukrative.com
Local-Advertising -=- www.localbounty.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to