tell me why u only want them to enter one word, and i may explain better.
but the easiest way to do it is after they submit, check the value, and if
it's not to your liking, send them to a page that looks exactly the same
except all the fields are populated except for that particular one, and next
to it in red, u can say "ONE WORD ONLY!"
the BEST way to do it is to use javascript validation, and if it doesn't
meet your criteria, popup a message and focus on that field. that's it :)
----- Original Message -----
From: W Luke <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Thursday, March 22, 2001 6:39 PM
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists