Ask a Question related to Macromedia ColdFusion, Design and Development.
-
mkauspe #1
verify form data
Sorry, n00b question here. How do I verify form data? i.e. I have an html form
that passes data to my insert statement, I want to verfiy that certain fields
have been filled out on the form and return an error if they aren't. Thanks for
any help!
mkauspe Guest
-
Autopopulated form not displaying data in pdfunless the form field is clicked
Within my online application, I have a pdf form that is auto generated and displayed to the user in the browser. My problem is that the populated... -
file upload form enctype="multipart/form-data
I'm upload a file using cffile upload and that seems to work fine except I need to use enctype="multipart/form-data on the form side. This isn't a... -
Getting client file name from a submitted form usingmultipart/form-data
Ive got a simple form with an type="file" -- all works fine, but what i want to do is get the extension of the file uploaded but not have to upload... -
mx 7 flash form The form data has expired, Please reloadthis page in your browser.
When i first go to any flash form on my CFMX 7 server i get the following message. The form data has expired, Please reload this page in your... -
Have website login form check a forum database to verify registration
I need help with having a Login Form on a website that goes to a member only section, to beable to check my forum database so that when people... -
rmorgan #2
Re: verify form data
You can use the 'required' attribute of the fields you want the user to fill out.
<cfform .............. required="yes" message="Please fill out">
rmorgan Guest
-
mpwoodward *TMM* #3
Re: verify form data
On 2005-06-19 12:16:54 -0500, "mkauspe" <webforumsuser@macromedia.com> said:
This is generally done with a combination of Javascript on the client> Sorry, n00b question here. How do I verify form data? i.e. I have an
> html form that passes data to my insert statement, I want to verfiy
> that certain fields have been filled out on the form and return an
> error if they aren't. Thanks for any help!
side (check out [url]http://www.javascriptkit.com[/url] for lots of samples and
tutorials on form validation) and CF on the server side. Particularly
if a database is involved, you absolutely can't rely on javascript
alone doing everything for you, but it's a good first pass at the
validation.
Also as rmorgan pointed out you use cfform and cfinput with the
required="yes" attribute in your cfinput tags. This essentially writes
the javascript for you on the client side, or if you're using CFMX 7,
there are new options (validateAt) that allow you specify validation on
the client, server, or both.
Matt
--
Matt Woodward
[email]mpwoodward@gmail.com[/email]
Team Macromedia - ColdFusion
mpwoodward *TMM* Guest



Reply With Quote

