Gel,
Any time a form is submitted it sends all of the form elements to the next
page or script. What I have done in the past is set a bogus value for a
Please Select statement in the first option of my select. That way if they
leave it alone and just choose to enter an ID the only real data you get is
the ID. Then in your action page setup your IsDefined to check that the
value is NEQ to what ever the default value you set was. The other way is
to break your form into two forms with two separate submits and just send it
to the same action page. Hope that helps some...
Bill
> -----Original Message-----
> From: Ang�l Stewart [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 06, 2000 8:01 AM
> To: [EMAIL PROTECTED]
> 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?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.