note 44741 deleted from function.md5 by nlopess
| From: | nlopess@php.net | Date: | Sun, 15 Aug 2004 01:50:03 +0000 |
| Subject: | note 44741 deleted from function.md5 by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74669@lists.php.net to get a copy of this message | ||
Note Submitter: myself@schaelle.de
----
A Simple Example for MD5 Coding:
<?php
if(!isset($_GET[action])) {
print "<form method=\"post\" action=\"?action=code\">\n";
print "<input type=\"text\" name=\"md5\">\n";
print "<br>\n";
print "<input type=\"submit\" value=\"Code.it!\">\n";
print "</form>";
}
else {
$md5 = trim($_POST['md5']);
if(empty($md5)) {
print 'No Input';
}
else {
print 'MD5: '.md5($_POST['md5']);
}
}
?>