PHP Classes

Type "Link" not working

Recommend this page to a friend!

      QR code generator  >  All threads  >  Type "Link" not working  >  (Un) Subscribe thread alerts  
Subject:Type "Link" not working
Summary:Problem with links in "qr_generator_example.php"
Messages:3
Author:chris
Date:2012-01-17 21:10:30
Update:2012-01-18 07:22:52
 

  1. Type "Link" not working   Reply   Report abuse  
Picture of chris chris - 2012-01-17 21:10:30
Hi,
thanks for a great class!

However, the "link" type does not work when I try it in qr_generator_example.php - the qr leads to an empty "Text" screen on the iPhone.

The other types work, though, except Text, which displays as empty - actually the image doesn't change at all when trying text or link. Both work on qr-codes.co.cc, so it can't be the app.

thanks in advance!
Chris

  2. Re: Type "Link" not working   Reply   Report abuse  
Picture of chris chris - 2012-01-17 21:42:24 - In reply to message 1 from chris
Ok, there is a small error in the link type example.

In the file qr_generator_example.php there is a error in the switch -

on line 13 the "case "link"" should be "case "url"", and in "$qr->link($_POST['link'])" the post should also be 'url', like so:

$qr->link($_POST['url'])

  3. Re: Type "Link" not working   Reply   Report abuse  
Picture of Arturs Sosins Arturs Sosins - 2012-01-18 07:22:53 - In reply to message 2 from chris
Wow, thanks.

Same goes to text type.

Fixed it and reuploaded working example.

Thank you again for pointing that mistake ;)