Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function generateRandomString($length = 25) {
- $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-';
- $charactersLength = strlen($characters);
- $randomString = '';
- for ($i = 0; $i < $length; $i++) {
- $randomString .= $characters[rand(0, $charactersLength - 1)];
- }
- return $randomString;
- }
- echo generateRandomString();
- $license = generateRandomString();
- ?>
- <html>
- <body>
- <form action="reg.php" method="POST">
- <p<?php echo $license; ?></p>
- <button name"datare">Regist</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement