You are here: Re: input type=password question « PHP Programming Language « IT news, forums, messages
Re: input type=password question

Posted by Greg Scharlemann on 11/11/05 18:01

Peter van Schie wrote:
> Greg Scharlemann wrote:
> >
> > I always get the same encoded string: 8f404d5399b6eb816fe579381a0e2e6c
>
> Looks like an md5 hash.
>
> > First, does PHP automatically encrypt the password type fields
>
> No.
>

Could this be a setting on the server perhaps?

Here's a simple script that I tried and it still encrypts the password
everytime to the same string: you can try it here:
http://devel.dailyunrest.com/test.php
--------------------------------------------------------
<?php

$register = $_REQUEST['Register'];

$valid = false;
if($register == "Register") {
$password = $_REQUEST['password'];
print $password;
}
?>
<html>
<body>
<form action="test.php" method="post">
<table width="50%" cellspacing="1" cellpadding="1" border="0">
<tr>
<td><b>Password:</b></td>
<td><input type="password" name="password" size="35"></td>
</tr>
<tr>
<td><b>Confirm Password:</b></td>
<td><input type="password" name="confirmPassword" size="35"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Register" value="Register" /></td>
</table>
</form>
</body>
</html>
-----------------------------------------------------

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация