the action page that handles uploading the file will need to check both
field values
<cfif form.fileField NEQ "" AND trim(form.writtenField) NEQ "">
error occurred
<cfelse>
use whichever one was filled out
</cfif>
Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]
-----Original Message-----
From: Shally [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 1:57 PM
To: CF-Talk
Subject: Selection of file
Hi Everyone,
I have a form in which I have one browse button and
one drop down list.
The user can either choose a text file through
uploading a file through the browse button or can
select a file from the dropdown list.
Can anyone help me the user is not allowed to do the
both.
Thanks in advance
Shally
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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