Search
 
SCRIPT & CODE EXAMPLE
 

PHP

QR CODE FROM CAMCODES

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>How to Create a QRCode using Google QRCode API</title>
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <h1 class="page-header text-center">QRCode using Google QRCode API</h1>
    <div class="row">
        <div class="col-sm-3 col-sm-offset-3">
            <form method="POST">
                <div class="form-group">
                    <label for="">Text to Convert to QRCode</label>
                    <input type="text" class="form-control" name="text_code">
                </div>
                <button type="submit" class="btn btn-primary" name="generate">Generate QRCode</button>
            </form>
        </div>
        <div class="col-sm-3">
            <?php
                if(isset($_POST['generate'])){
                    $code = $_POST['text_code'];
                    echo "
                        <img src='https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=$code&choe=UTF-8'>
                    ";
                }
            ?>
        </div>
    </div>
</div>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Php :: if isset post php 
Php :: Wordpress Scheduled Post to be viewable on front end 
Php :: relationship on the base of condition in laravel 
Php :: how to convert number into million and billion suffix in PHP using brick/Money package 
Php :: add reviews from code site reviews wp 
Php :: php cut after first sentence 
Php :: Comment supprimer les onglets WooCommerce dans WordPress 
Php :: Undefined array key after unset() 
Php :: set php version in php.ini 
Php :: laravel change error page to open in vscode 
Php :: laravel command optional parameter 
Php :: php calculate variance 
Php :: textarea autocomplete phpmyadmin style 
Php :: laravel notion add enviroment 
Php :: php accounting ledger 
Php :: Settings pages are created like this: 
Php :: register column types octobercms 
Php :: cách nhúng php vào html 
Php :: SSL certificate problem: certificate has expired php 
Php :: php explode and typecast 
Php :: php get numer of items 
Php :: livewire component lost data 
Php :: Call to undefined method :last() 
Php :: dump request in ci 
Php :: statamic asset tag 
Php :: fxcjahid 
Php :: themeHeader 
Php :: PHP strspn — Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask 
Php :: how to disable html coding property in php 
Php :: how to access the name of menu in worpress 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =