$qr->link($_POST['url']); break; case "txt": $qr->text($_POST['txt']); break; case "sms": $qr->sms($_POST['sms_phone'], $_POST["sms_text"]); break; case "bookmark": $qr->bookmark($_POST['mms_phone'], $_POST["mms_text"]); break; case "tel": $qr->phone_number($_POST['tel']); break; case "contactinfo": $qr->contact_info($_POST["contact_name"], $_POST["contact_address"], $_POST["contact_phone"], $_POST["contact_email"]); break; case "email": $qr->email($_POST["email_address"], $_POST["email_subject"], $_POST["email_txt"]); break; case "geo": $qr->geo($_POST["geo_lat"], $_POST["geo_lon"], $_POST["geo_above"]); break; case "wifi": $qr->wifi($_POST["wifi_aut"], $_POST["wifi_ssid"], $_POST["wifi_pass"]); break; } //here we specify inputted size and get link to image echo "<p><img src='" . $qr->get_link($_POST['size']) . "' border='0'/></p>"; //to download image //$link = $qr->get_link();