How I handle this is setting a default value in the top selection of the
box.

<option name = "blah" value = "none">--Select One--</option>

Then on the other side you will not use the IsDefined, use neq "none".

Julie




----- Original Message -----
From: Ang�l Stewart <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 06, 2000 7:01 AM
Subject: Using Select Tags in optional Form Submissions


> Hello!
>
> 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.
>
> I need to do this same thing on a couple other forms. Is it impossible to
> use a Select box in this way?
> Is a value ALWAYS sent when the user clicks submit, even if the user never
> made a selection from the box?
>
> I require a way around this, or some other way to simulate a combo box :-\
> help help.
> *waves arms frantically*
>
> -Gel
>
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to