• Problems

    This line enable URL Rewriting . It must be enabled via the RewriteEngine directive! and if your .htaccess file is going to use rewrite rules, you should always include this line. Otherwise, you can’t be sure if its enabled or not. The string “on” is case insensitive.

Here is simple code to make MD5 Hasher 


Index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>


<body>
<p align="center">
<h1 align="center">MD5 Hasher</h1>
<p>What would you like MD5 hashed? </p>
<form name="form1" method="post" action="index.php">
  <p>
    <input type="text" name="unencrypted">
  </p>
  <p>
    <input type="submit" name="Submit" value="Submit">
  </p>
</form>
<p>

<?php
if (isset($_POST['Submit'])){
$unencrypted = $_POST['unencrypted'];
$encrypted = md5("$unencrypted");
echo'
<p>Your origional text:';
echo $unencrypted ;
echo'</p><p>Your md5 hashed text:';
echo $encrypted ;} ?></br>
<br>
<br>
</body>
</html>
</body>
</html>



No comments:

Post a Comment