note 76096 deleted from function.date by nlopess
| From: | nlopess@php.net | Date: | Fri, 13 Jul 2007 19:05:17 +0000 |
| Subject: | note 76096 deleted from function.date by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-128448@lists.php.net to get a copy of this message | ||
Note Submitter: Jailout2000 at gmail dot com
----
<?php
$page['enterdateformat'] = '<html>
<head>
<title>Enter a Date format</title>
</head>
<body>
<center>
<br><br><br><br><br><br><br><b>Enter a date and
time format relative to the PHP <a href="http://www.php.net/date"
target="_blank">date()</a> function:</b><br>
<form method="get">
<table border="0">
<tr>
<td>Format:</td>
<td><input type="text" name="dtf"
value="'.$_REQUEST['dtf'].'"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Submit"><input
type="reset" value="Reset"></td>
</tr>
</table>
</form>
</center>
</body>
</html>';
$page['results'] = '<html>
<head>
<title>Enter a Date format</title>
</head>
<body>
<center>
<br><br><br><br><br><br><br><b><b>Results:</b><br>
'.date($_REQUEST['dtf']).' (Relative to the server\'s timezone).
</center>
</body>
</html>';
$dtf = $_REQUEST['dtf']; //Get the dtf field, hidden or not in the URI.
If (empty($dtf)) { Echo $page['enterdateformat']; }
Else { Echo $page['results']; }
?>