Start and End Date buttons

Results 1 to 2 of 2

Thread: Start and End Date buttons

  1. #1
    Mahdy Guest

    Default Start and End Date buttons

    I am using ASP to access data from a database with Starting date and Ending date buttons. How can I prevent a user from selecting in a wrong sequence, i.e. starting with 1995 and ending with 1990? In other words to give an error message?

  2. #2
    Join Date
    Dec 1969

    Default RE: Start and End Date buttons

    just use js to check the values of the fields before submitting the form.. ie:<BR><BR>function checkIT(){<BR>var blVal = false;<BR>if (document.formName.field1.value &#060; document.formName.field2.value)<BR>blVal = true;<BR>return blVal;}<BR><BR>and in your &#060;form&#062; tag, you&#039;ll need this:<BR><BR>&#060;form .... onsubmit="return checkIT()"&#062;<BR><BR>get it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts