|
|
|
/*
* I'm still a new PHP developer, and am FAR from anything great, however
* I have a few pretty cool toys including my Custom Home Page Maker on
* my website at http://temple.lod.com/alucard/
* Please feel free to drop by, and check out my work, and give ideas,
* comments or suggestions. I could use all the help I can get.
*/
// This should be a .html file... like day.html
<html>
<FORM ENCTYPE="multipart/form-data" ACTION="day_of_week.php3" METHOD=POST>
<table border=0 width=100%>
<tr>
<td bgcolor=redorange colspan=2>
<center><h3>Date Selector</h3></center>
This little program will find what day of the week a date falls on inbetween
the years <b>1969</b> and
<b>2035</b>. To use this just type in the Day/Month/Year in numeric form. *For
example September 14th, 1976
is 9/14/1976*
</td>
</tr>
<tr>
<td width=50% bgcolor=redorange><b>Enter a date: (mm/dd/yyyy)</b></td>
<td width=50% bgcolor=redorange align=center>
<INPUT NAME="month" TYPE="text" size="4" MAXLENGTH=2> /
<INPUT NAME="day" TYPE="text" size="4" MAXLENGTH=2> /
<INPUT NAME="year" TYPE="text" size="4" MAXLENGTH=4>
<INPUT TYPE="submit" VALUE=" Find Day of Week "></td>
</tr>
</table>
</FORM>
</html>
// This goes in day_of_week.php3
<html>
<center><h1>
<?
if (checkdate($month,$day,$year) && ($year <= 2035 && $year >= 1969))
{
echo date( "F d, Y", mktime(0,0,0,$month,$day,$year) );
print(" is on a " . date("l<br>", mktime(0,0,0,$month,$day,$year)));
}
else { echo("Invalid DATE"); }
?>
</h1></center>
|
|
| A simple and fast calendar combining PHP and tables. Use this as a base for applications in which a calendar is needed. Categories : Date Time, PHP, Complete Programs, Calendar | | | Functions for calculating sunrise/sunset, twilight * length of day based on latitude / longituse & date Categories : Date Time, PHP, Complete Programs | | | Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs. Categories : Databases, PHP, MySQL, Complete Programs | | | phpAds, a complete banner and ad management system with detailled tracking and stats. Categories : MySQL, Complete Programs, Ecommerce, PHP, Databases | | | Searches through a local INN server's discussions Categories : Search, Complete Programs, PHP | | | A Timing Class Categories : PHP, PHP Classes, Date Time | | | Parses HTTP_USER_AGENT so that you can customize your site to different browsers Categories : HTML, PHP, Complete Programs | | | Finding the day of the week for a specific date.
Categories : PHP, Databases, MySQL, Date Time | | | A wrapper function to format dates coming from a databases with the
same syntax as PHP's date() function. Categories : Date Time, Databases, PHP | | | File Explorer, browse, upload, download and edit your web site files with only a browser and a HTTP connection. Categories : Complete Programs, Content Management, Filesystem, PHP | | | PHPCatalog Categories : Ecommerce, PHP, Complete Programs | | | pcCalendar class - Allows for the creation of calendars in HTML pages. All output functions can be easily overridden, refer to article 1471 for an example.
Categories : PHP, Date Time, Calendar, PHP Classes | | | A PHP Calendar function with CSS : add a cool calendar to any php page by just adding a calendar class based function. Categories : PHP, PHP Classes, Calendar, Date Time | | | GuestBook Light - a plug and play application for any website. Categories : PHP, Complete Programs, Filesystem, Sessions | | | Validator 98 - a PHP-script to generate form-validation-code in JavaScript. Categories : Complete Programs, Java Script, PHP, HTML and PHP | |
|
|
|