Just be careful when you are proccessing the response that they have
selected an actual value, rather than the blank one.
If you include the following javascript function within the <head></head>
section, and call it from the form as shown, Javascript will check for a
selection before allowing the form to submit. Note that, if Javascript is
disabled, this won't work, so you MUST also check server-side.
javascript
:
function CheckForm(objForm){
if(objForm.select1.selectedIndex == 0){
alert("You must select an option from the select box.");
return false;}
}
HTML:
<form onSubmit="return CheckForm(this);">
Hope this helps - note that its after midnight here, I'm tired and I wrote
the script off the top of my head and haven't checked it - it *should* work
but I take no responsibility...
Blair
Alex Goodey <ag*****@hsfinancial.co.uk> wrote in article
<bv************@ID-221525.news.uni-berlin.de>...
Sorry meant to say
Response.Write "<SELECT id=select1 name=select1>"
Response.Write "<OPTION value="""" SELECTED></OPTION>"
Response.Write "<OPTION value=1>One</OPTION>"
Response.Write "<OPTION value=2>Two</OPTION>"
Response.Write "<OPTION value=3>Three</OPTION>"
Response.Write "</SELECT>"