I used this code but the problem is the page needs to be refresh if I want to change the generated password
$pass=substr(md5(microtime()), 0, 8);
echo $pass;
Is it possible to generate the password without page refresh for example there is a button generate where users can just click it.
Thanks