Skip to content

nathanlegroux/simple-qrcode-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

  • #f03c15 Note : this code use a google api !

Generate QR code with $_GET request named "url"

<?php if (isset($_GET["url"])){
	
$url = $_GET["url"]; ?>

<img src="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=<?php echo $url ?>">

<?php } else { 

echo 'error';

 } ?>

Generate QR code with $_GET request named "url" with weight and height

<?php if (isset($_GET["url"])){
	
$wh = '150x150';
$url = $_GET["url"]; ?>

<img src="https://chart.googleapis.com/chart?chs=<?php echo $wh ?>&cht=qr&chl=<?php echo $url ?>">

<?php } else { 

echo 'error';

 } ?>

Generate QR code with $_POST request named "url"

// Encrypt

<?php if (isset($_POST["url"])){
	
$url = $_POST["url"]; ?>

<img src="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=<?php echo $url ?>">

<?php } else { 

echo 'error';

 } ?>
 

Generate QR code with $_POST request named "url" with weight and height

<?php if (isset($_POST["url"])){
	
$wh = '150x150';
$url = $_POST["url"]; ?>

<img src="https://chart.googleapis.com/chart?chs=<?php echo $wh ?>&cht=qr&chl=<?php echo $url ?>">

<?php } else { 

echo 'error';

 } ?>

About

Simply create QRCode !

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published