daily pastebin goal
51%
SHARE
TWEET

QR-PHP-3

rudipratm Mar 19th, 2019 (edited) 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include('phpqrcode/qrlib.php');
  3. if(isset($_POST['data'])){
  4.     $text = $_POST['text'];
  5.     $folder = "images/";
  6.     $file_name = "qr.png";
  7.     $file_name = $folder.$file_name;
  8.  
  9.     QRcode::png($text,false, QR_ECLEVEL_H, 10, 3);
  10.     echo"<img src='images/qr.png'>";
  11. }
  12. ?>
  13.  
  14. <html>
  15. <head>
  16.     <title>QR Code Generator</title>
  17. </head>
  18. <body>
  19.     <form method="POST">
  20.         <input type="text" name="text" placeholder="Tuliskan Sesuatu">
  21.         <input type="submit" name="data">
  22.     </form>
  23. </body>
  24. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top