Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client Side Validation 1

Status
Not open for further replies.

TamedTech

IS-IT--Management
May 3, 2005
998
GB
Hello Chapps,

Just a small one but its bugging me, i have a small .cfm file called contact.cfm, it has a form in it that posts to send.cfm which generates an e-mail using the entered data.

Basicly i want to ensure that a couple of the fields in the form contain information, my cfinput tag looks like this.

Code:
<cfinput name="name" type="text" message="Please enter your Name" required="Yes" size="30" maxlength="30">

even when the form it left blank it does not display my message box and just sends off a blank mail to me.

Any ideas?

Rob
 
TamedTech, using CFINPUT with CFFORM is heavily based on Java. So if it does not work on that machine, most likely you don't have the java version that CF needs. I had a similar problem the first time I used CFFORM. On one machine the validation would not work, but on another machine it did. This is why I don't use CFFORM. I'd much rather use JS or server side validation on the action page.


____________________________________
Just Imagine.
 
Thankyou JUG that makes perfect sense ... i'll switch over and do some server side validation instead.

Thanks,

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top