|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Required drop down boxes in a front page developed webpage
Hi everyone,
I am doing a simple online questionnaire for my dissertation that is using a mixture of data entry fields which i need to be set as required. This is all working fine and they all work apart from the drop down boxes. The text fields the radio buttons and everything else is working as required but not the drop down boxes. I have set the fields up correctly in frontpage as follows:
I have attached a link to the site below, with also the source code. It is quite long as some of the drop down boxes have loads of entries. However despite this it is very simple. Any help would be much appreciated. Thanks Nick http://www.personal.rdg.ac.uk/~leu02nb/form.htm |
|
#2
|
||||
|
||||
|
what you mean by "not working"?
the problem is with the server side code, attaching the html file won't help. (we can do right click and View Source to see the html anyway) |
|
#3
|
|||
|
|||
|
Quote:
Sorry, basically not working means that the validation on the field does not work. You can still not answer the question and it be accepted. I was after an error message to be displayed when no answer was given, like on the radio buttons. |
|
#4
|
||||
|
||||
|
the validation is done on the server side code - the problem is there. to get selected value of combo box have such code:
strValue=Request("combo_name") and you can check if this value is empty, in which case notify the user and abort rest of code. |
|
#5
|
|||
|
|||
|
Ok thanks for the help I realise the problem is onthe server side now, but i am not sure where you want me to put the code you mention. Should it go with the code for every drop down box? If so could you copy and paste the code into my source code to show me where?
|
|
#6
|
||||
|
||||
|
how can I make it clear? the problem is not with the page you posted. the form there go to the page http://wwwcgi.rdg.ac.uk:8081/cgi-bin/formmail.pl - it's not even on the same server - and the problem is in that page.
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Required drop down boxes in a front page developed webpage |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|