A select box will always result in a value being passed to the "action" page. I'd
suggest
you use an initial OPTION something like this:
<SELECT name="Department">
<OPTION value="0">Select a Department
<OPTION>Department 1
<OPTION>Department 2
etc
</SELECT>
Then on your action page, do a CFIF test for Department, and if it's not 0, you know
they
made a department selection...
Gene Kraybill
Angél Stewart <[EMAIL PROTECTED]> wrote:
> I have a form, with four text boxes and a select box that is pulling data
> from a Department Table to get available departments and their Department
> IDs.
>
> Now, the user can eitehr enter an Employee Name, ID, or select a department.
> However, on the next page I have several <CFIF IsDefined....> tags to check
> which field has a value in it, so that I know what to build the query on.
>
> It's one or the other, they can't enter a Name, and an ID...AND a department
> (wouldn't make sense to do that anyways heh heh).
>
> But...for some reason the Department is always carried forward,even if the
> user makes no selection.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.