anevins Posted March 26, 2011 Share Posted March 26, 2011 Hello, I have a form which receives the user's card number, and I want to then md5 it through a GET variable. Currently, I have a poorly constructed wrong syntaxed attempt of this, but I was hoping you guys can help me get this right. Current PHP: $cnumber = $_GET(md5['cnumber']); Current HTML <input type="text" name="cnumber" /> Link to comment https://forums.phpfreaks.com/topic/231769-how-can-i-use-md5/ Share on other sites More sharing options...
aabid Posted March 26, 2011 Share Posted March 26, 2011 md5($_GET[cnumber]) Link to comment https://forums.phpfreaks.com/topic/231769-how-can-i-use-md5/#findComment-1192475 Share on other sites More sharing options...
anevins Posted March 26, 2011 Author Share Posted March 26, 2011 Problem Solved, Thanks Aabid. Link to comment https://forums.phpfreaks.com/topic/231769-how-can-i-use-md5/#findComment-1192476 Share on other sites More sharing options...
monkeytooth Posted March 26, 2011 Share Posted March 26, 2011 md5: (reference: http://php.net/manual/en/function.md5.php) $myNewEncryptedValue = md5('value you want to pass as md5'); echo "My md5 hash: ". $myNewEncryptedValue; Link to comment https://forums.phpfreaks.com/topic/231769-how-can-i-use-md5/#findComment-1192492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.