Title: Message
Stuart
 
This guys is a goose
 
you can do just as much with CFFORM as you can using _javascript_.
 
for example
 
 
<script>
 
function checkMyForm(myForm)
    {
    if (myForm.username.value == "")
        {alert("Please enter a username."); return false;}
    }
<script>
 
<cfform action="" method="post" >
    <table>
        <tr>
            <td>Username</td><td><input type="text" name="username"></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><input type="submit"></td>
        </tr>
    </table>
</cfform>
 
Anything you include on your onSubmit for your form gets included in  the CFFORM _javascript_ and is included on the CFFORM form validation.
 
CFFORM just gives you a tag based method of doing client side form validation.
 
Steve
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Stuart Kidd
Sent: Saturday, 5 July 2003 7:23 PM
To: CFAussie Mailing List
Subject: [cfaussie] <cfform> error checking.

Hi guys,

 

I came across this page http://tutorial30.easycfm.com/ and also know that like this author is saying <cfform> error checking isn’t recommended because it doesn’t give you full control.  But how doesn’t it?

 

And why, between his two examples is the second one better than the top one?

 

Cheers,

 

Saturday the Kidd

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to