
December 3rd, 2004, 09:37 PM
|
 |
Wickedwd.com
|
|
Join Date: May 2004
Location: wickedwd.com
Posts: 186
Time spent in forums: 17 h 22 m 55 sec
Reputation Power: 0
|
|
|
<CFSELECT> tag problem
ARGHHHHH!!!!
Im trying to get a popup error message to appear when a person leaves a dropdown box blank and submits a form. I accomplished this with <CFSELECT> by making a query of a table that is completely empty.
The problem is when i fill the table and leave one row blank so that itll be the first in the dropdown, when i choose that blank option in the dropdown and submit the form it goes right on ahead without throwing the popup error that it is blank.
My code:
First i create the mandatory query
<cfquery name="CFD" datasource="Alas">
SELECT Degree
FROM Education
</cfquery>
then inside of a <cfform> i put this
Code:
<cfselect name="Degree"
query="CFD"
display="Degree"
Value="Degree"
size="1"
Required="Yes"
Message="Hey enter your Degree">
</cfselect>
Any ideas? im really grumpy,  im getting a beer
i think my prob is how to properly fill the database, cause i can get the error popup when i leave the table completely empty, not sure though.
thx in advance
-Alas
|