| | |
To restrict users to choose date from date picker only
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
1
#2 Nov 7th, 2009
assuming that u already have a datepicker which sets the selected date value in a text field, u can make ur textbox as readonly... just add the "readonly" attribute in ur input field
•
•
•
•
Hi all.
I have two date input fields. Is there any way to restrict date input from only date picker (users are not allowed to input date through keyboard). The reason I want it this way is to prevent users from entering invalid dates.
Any help provided is greatly appreciated. Thanks in advance.
Gimme reputation points if u find my post helpful.
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
•
•
Join Date: Sep 2009
Posts: 24
Reputation:
Solved Threads: 0
0
#4 Nov 7th, 2009
Btw, for any others that may facing same problem, here's how:
<FORM>
<INPUT TYPE="TEXT" VALUE="if($dateFrom !=NUll){echo $dateFrom}" READONLY>
</FORM> 0
#5 Nov 8th, 2009
Gimme reputation points if u find my post helpful.
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
![]() |
Similar Threads
- Code to compare system date and date from database (JSP)
- date t date crystal report (C#)
- Restrict Users from Running Specific Applications (Windows tips 'n' tweaks)
- event for date picker (JavaScript / DHTML / AJAX)
- how to put a date time picker in ASP.NET (ASP.NET)
- date time picker (Visual Basic 4 / 5 / 6)
- convert date(string) to date (date time) (JavaScript / DHTML / AJAX)
- Date and Time Picker (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: refresh page one time only..
- Next Thread: Password encoding/decoding
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array basics beginner binary broken cakephp checkbox class cms code cron curl database date datepart directory display download dynamic echo email error file files folder form forms function functions google head href htaccess html image include insert integration ip java javascript joomla limit link list login loop mail menu mlm mod_rewrite multiple mysql number oop parse password paypal pdf php phpmyadmin problem query radio random recourse recursion regex remote script search seo server sessions sms soap source space sql structure syntax system table tutorial update upload url validation validator variable video web webdesign xml youtube





