Файловый менеджер - Редактировать - /home/d46091/udyogaadhaar.net/blog-post/images/698279/test.php.tar
Назад
home/d46091/udyogaadhaar.net/test.php 0000644 00000000747 15026517632 0013250 0 ustar 00 <?php if(isset($_POST['save'])){ $chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $numCodesToGenerate = $_POST['code']; $amount = $_POST['amount']; for ($n = 0; $n < $numCodesToGenerate; $n++) { $res = "USK-"; for ($i = 0; $i < 7; $i++) { $res .= $chars[mt_rand(0, strlen($chars)-1)]; } echo $res.'<br>'; } } ?> <form action="test.php"method="post"> <input type="text"name="code"> <input type="text"name="amount"> <input type="submit"name="save"> </form>