Require user to select an item from a drop down list

R

Ron

I have a form with a drop-down list I would like to require the user to make
a selection on. How would I go about doing this?

Thanks,
Ron
 
B

brucie

I have a form with a drop-down list I would like to require the user to make
a selection on. How would I go about doing this?

your server side script to process the form goodies should check to
ensure any required stuff is there and in the format you want. if not
send a message back to the visitor asking them to do it again.
 
W

William Tasso

Ron said:
I have a form with a drop-down list I would like to require the user
to make a selection on. How would I go about doing this?

ask them nicely
offer an inducement
threaten physical violence
 
A

Anders Thorsen Holm

brucie said:
your server side script to process the form goodies should check
to ensure any required stuff is there and in the format you want.
if not send a message back to the visitor asking them to do it
again.

And perhaps you should also do some client side scripting
(JavaScript) to check the form when submitting - if the input is
invalid, prevent the form from being submitted and place a warning
(but go easy on the alert boxes, they're usually more frustrating
than helpful).

Needless to say, you shouldn't rely on client side scripting alone,
since users may disable it or not support it at all.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top