WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Mobile Dev World

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Date Validation using JavaScript. Intended to use it as checkdate() from PHP.
Categories : Java Script, Date Time, PHP Update Picture
Joao Rochate
Date : Jan 16th 1999
Grade : 4 of 5 (graded 10 times)
Viewed : 39371
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Joao Rochate
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

<script Language="JavaScript">
// Since there wasn't an example like this on the site
// I decided to share it with all of you.
// This is a non-optimized example, just to save some time
<!--function checkdate(d,m,y)
{
var yl=1990; // least year to consider
var ym=2010; // most year to consider
if (m<1 || m>12) return(false);
if (d<1 || d>31) return(false);
if (y<yl || y>ym) return(false);
if (m==4 || m==6 || m==9 || m==11)
if (d==31) return(false);
if (m==2)
{
var b=parseInt(y/4);
if (isNaN(b)) return(false);
if (d>29) return(false);
if (d==29 && ((y/4)!=parseInt(y/4))) return(false);
}
return(true);
}



Calendars to choose a range of dates , reservation events ...
Categories : PHP, Calendar, Java Script, Date Time
PHP Calendar
Categories : PHP, Calendar, Date Time, Java Script, CSS
Local Time clock and Server time usign PHP and JavaScript
Categories : PHP, Java Script, Date Time, Beginner Guides
Local-to-user date and time display regardless of time zone or where the website's server is located
Categories : PHP, Date Time, HTML and PHP, Java Script
enhanced date picker with jcript checking for a dynamic date input
Categories : PHP, Java Script, Date Time, Calendar, Arrays
Example of using the pcCalendar class, article 1468 on weberdev.com. Calendar example.
Categories : PHP, Date Time, PHP Classes, Calendar
How to check if JavaScript is enabled on a remote browser with PHP
Categories : PHP, Java Script
Validator 98 - a PHP-script to generate form-validation-code in JavaScript.
Categories : Complete Programs, Java Script, PHP, HTML and PHP
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time
Function to convert Arabic numbers into Roman Numerals
Categories : Algorithms, PHP, Date Time
Simple conversion functions to change MySQL dates to arrays, arrays to MySQL dates.
Categories : PHP, Arrays, Date Time, Databases, MySQL
function to generate calendars on the fly.
Categories : Calendar, PHP, Date Time
Monthly and Daily Upcoming Events calendar.
Categories : Date Time, PostgreSQL, PHP, Calendar, Databases
Customizable Calendar Class
Categories : HTML and PHP, Date Time, PHP, PHP Classes, Calendar
Upload any fixed type of files, control file type through javascript and encrypt filename using php so file not get overwrite
Categories : PHP, Java Script, Functions, PHP References, Form Processing