guid.php 555 B

123456789101112131415161718192021222324
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. </head>
  6. <body>
  7. <form action="guid.php" method="get">
  8. GUID Number: <input type="text" name="num" value="1" /><br>
  9. <input type="submit">
  10. </form>
  11. <?php
  12. if(isset($_GET["num"])){
  13. $count=$_GET["num"];
  14. echo "<h2>$count - GUID</h2>";
  15. echo "<textarea rows=\"20\" cols=\"100\">";
  16. for($i=0;$i<$count;$i++){
  17. echo com_create_guid(). "\r\n";
  18. }
  19. echo "</textarea>";
  20. }
  21. ?>
  22. </body>
  23. </html>