Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title>API_Key</title>
- <script src="validator.js" type="text/javascript"></script>
- </head>
- <body>
- <form action="welcome.php" method="post" id="API_FORM">
- Key: <input type="text" name="key" id="apikey" />
- <input type="submit" />
- </form>
- </body>
- </html>
- //PHP FILE BELOW
- <html>
- <body>
- Your API key is: <?php echo sha1($_POST["key"]); ?><br />
- Your API key was generated on the: <?php echo date("d/m/Y") . "<br />";?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment