Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('phpqrcode/qrlib.php');
- if(isset($_POST['data'])){
- $text = $_POST['text'];
- $folder = "images/";
- $file_name = "qr.png";
- $file_name = $folder.$file_name;
- QRcode::png($text,false, QR_ECLEVEL_H, 10, 3);
- echo"<img src='images/qr.png'>";
- }
- ?>
- <html>
- <head>
- <title>QR Code Generator</title>
- </head>
- <body>
- <form method="POST">
- <input type="text" name="text" placeholder="Tuliskan Sesuatu">
- <input type="submit" name="data">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement