QRCode Generator In PHP
This post will guide you to create your own QR code Generator. Basically we will use Google's API to generate the QR code. QR code is a machine-readable code consisting of an array of black and white squares, typically used for storing URLs or other information for reading by the camera on a smartphone.
Screenshots[Demo]
The Code
Alternatively you can download the complete script here. Just extract it and upload it in your server.
Still having doubts ? Ask US or comment bellow !
Screenshots[Demo]
Home page of the script showing which takes the Input.
Generated QR code of the input Given
The Code
<div style="text-align:center;"> <form class="email" name="qrc" method="post" action="<?php $_PHP_SELF ?>" id='12'> <p align="center"><font color=#99742e><span style="font-size:12pt;"><b>Link</b></span></font></p> <input type="text" name="qrlink" autocomplete="off" placeholder="Enter The Link"><br/> <input class="send" type="submit" name="submit" value="Submit"> </form> <?php if(isset($_POST['submit'])) { $li=$_POST['qrlink']; $li="https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl=$li"; //echo $li; echo '<style>.email{display:none;}</style><center><b>Generated QRCode:</b><center/><br/><center><img src="'.$li.'"/></center><br/>'; } ?> </div>
Alternatively you can download the complete script here. Just extract it and upload it in your server.
Still having doubts ? Ask US or comment bellow !
Comments
Post a Comment