redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

Field Validation HELP!



 
Post new topic   Reply to topic    Programming Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
Krabik
Enthusiastic Coder


Joined: 15 Mar 2005
Posts: 62
I am designing a room reservation in my college...
The rule of the booking is, it only allows booking at most one week ahead.

For example, let say today is 09/11/2004,
You can only book for a room from 09/11/2004 to 15/11/2004. That is a 1 week range. When you want to book at the 16/11/2004, the page will alert that you cannot make booking more than 1 week.The date format is dd/mm/yyyy.

How can I make the form in my asp page or a field in my form
to accept only the one week period of time from the date the booking is made when the form is submitted? Any idea....?

Please help me anybody.Please....
I have been searching out the code on how to do that, but I cannot understand how to code that!

Is there any popup callender picker that we can select only one week range from todays date? Could anybody help me please......

Reply with quote
 
Jony
Enthusiastic Coder


Joined: 18 Mar 2005
Posts: 71
why not have it as a select box so it only displays dates one week ahead?
Reply with quote
 
Krabik
Enthusiastic Coder


Joined: 15 Mar 2005
Posts: 62
Hai jony!

I have thought of doing that, but I dont know how to do it!
Could you please help me benbacardi.

I am in a desperate situation here...
I dont know where else to find how to do it.
Please jony....

Reply with quote
 
Jony
Enthusiastic Coder


Joined: 18 Mar 2005
Posts: 71
i dont know what the exact code would be but in psuedo code im sure its something like this:

Code:

<select>
<option>Write todays date</option>
<option>Write todays date + 1</option>
<option>Write todays date + 2</option>
<option>Write todays date + 3</option>
<option>Write todays date + 4</option>
<option>Write todays date + 5</option>
<option>Write todays date + 6</option>
</select>



or something like that... im sure one of the more advanced programmers can help you!

Reply with quote
 
Krabik
Enthusiastic Coder


Joined: 15 Mar 2005
Posts: 62
^^ that was me
it had logged me out by itself....

Reply with quote
 
Page 1 of 1
Post new topic   Reply to topic    Programming Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group