Auto-generate QR Code on Page Load?

Help
Erve1879
2011-12-28
2014-01-26
  • Erve1879
    Erve1879
    2011-12-28

    I'm trying to use this excellent plugin to auto-generate a QR code based on information passed from another php script and then have the generated QR code load directly in another page, so that the user simply clicks submit and is passed to a new page which auto-loads the generated QR code…

    Can someone please point me in the right direction to get this going?!?!

    Thanks very much in advance!!!

     
  • makaveiljojo
    makaveiljojo
    2014-01-26

    Here are some code snippet of PHP QR code generator Script, hope they are helpful:
    include 'qrcode.class.php';

    $qr = new SocialQrCode ();
    $qr->setType ( SocialQrCode::QRCODE_TYPE_PNG );
    $qr->generate ( "http://www.facebook.com/cocacola" );
    $qr->show ();

    // create a QR Code with this text and display it
    QRcode::png("My First QR Code");

    Basic URL encoding example:

    qr_img.php?d=http://pixelcode.co.uk&e=H

    JPEG example:

    qr_img.php?d=http://pixelcode.co.uk&e=H&t=J

    HTML image example:

    QR code for URL pixelcode.co.uk