HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 9th, 2004, 09:00 AM
nickblewden nickblewden is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 3 nickblewden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 put in a default [Required Please Select Field] which is displayed when the user first sees the field
  • However I have selected disallow first field so that the above entry in the form would not be counted as a valid entry.
  • I have entered allow only one entry
What really spooks me is that all the other fields validation works but not for these fields. I cannot see what I have done wrong. Can anyone help?

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
Attached Files
File Type: txt source code.txt (33.9 KB, 120 views)

Reply With Quote
  #2  
Old November 9th, 2004, 10:47 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,891 Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 5 Days 7 h 53 m 18 sec
Reputation Power: 1537
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)

Reply With Quote
  #3  
Old November 9th, 2004, 10:53 AM
nickblewden nickblewden is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 3 nickblewden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by Shadow Wizard
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)



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.

Reply With Quote
  #4  
Old November 9th, 2004, 11:07 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,891 Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 5 Days 7 h 53 m 18 sec
Reputation Power: 1537
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.

Reply With Quote
  #5  
Old November 9th, 2004, 11:24 AM
nickblewden nickblewden is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 3 nickblewden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #6  
Old November 9th, 2004, 11:35 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,891 Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1Folding Points: 338184 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 5 Days 7 h 53 m 18 sec
Reputation Power: 1537
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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Required drop down boxes in a front page developed webpage


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway