PHP: How to MD5 encrypt before sending form using GET method?

Blopo Blop

New member
Okay so this is the code==>
<form name="form1" method="get" action="' . $root . '/password.php?id=' . $id . '">
<table width="100%" border="0">
<tr>
<td>Password</td>
<td><input name="password" type="text" id="password" size="50"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="submit" id="submit" value="Submit"></td>
</tr><input type="hidden" name="id" id="id" value="' . $id . '">
</table>
</form>

The password will be sent like this:
password.php?id=...&password=[here]

but i need it to be MD5 encrypted before it gets sent so that the only thing you see in the URL is an MD5 key..

Any idea?

Thanks
Okay; so now I use POST instead of get. It's safer but I think it can still be tracked. How can I md5 encrypt it before it is sent by the form?
 
Back
Top