Welcome Guest, Not a member yet? Register   Sign In
E-mail function not working correctly
#9

[eluser]echo sara[/eluser]
no, the output of random_string defines it. its the scrambled letter/number.

Code:
function random_string() {
        $chars = "abcdefghijklmnopqrstuvwxyz0123456789";
        srand((double)microtime()*1000000);
        $i = 0;
        $pass = '';
        
        while ($i <= 7) {
            $num = rand() % 33;
            $tmp = substr($chars, $num, 1);
            $pass = $pass .$tmp;
            $i++;
        }
        
        return $activation_code;
    }


Messages In This Thread
E-mail function not working correctly - by El Forum - 08-13-2011, 04:44 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 05:03 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 05:21 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 05:35 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 05:52 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 06:09 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 06:38 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 08:05 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 08:22 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 09:14 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 10:07 PM
E-mail function not working correctly - by El Forum - 08-13-2011, 10:40 PM
E-mail function not working correctly - by El Forum - 08-14-2011, 10:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB