Guest User

Untitled

a guest
Mar 4th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['submit']))
  3. {
  4. $CharSet='1234567890';//QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm';
  5. $generated_password = substr(str_shuffle($CharSet),0,5);
  6. }
  7. ?>
  8.  
  9.  
  10. <html>
  11. <form action="randomno.php" method="POST">
  12. <input type="submit" name="submit" value="Generate" >
  13.  
  14. <?php
  15. if(isset($generated_password))
  16. echo $generated_password;
  17. //else echo 'Not generated';
  18. ?>
  19. </form>
  20. </html>
Add Comment
Please, Sign In to add comment