You don't have to write the function twice to call it twice, once is enough. Try something like this:
<?php
function encode5t($password)
{
$ret = $password;
for($i=0; $i<5;$i++)
{
$ret=strrev(base64_encode($ret));
}
return $ret;
}
$EncOldPwd = encode5t($OldPassword);
$EncNEWPwd = encode5t($NewPassword);
?>
JRSofty
Junior Poster in Training
69 posts since Dec 2007
Reputation Points: 16
Solved Threads: 10