0
这是functions.php文件:用PHP中的Google API与从Form发送的数据生成QR码?
<?php
include 'QR_BarCode.php';
function url(){
$qr = new QR_BarCode();
$qr->url('here i want data sent from form');
$qr->qrCode();
}
?>
这是我的HTML表单的index.php。我想在index.php页面上生成QR码。
<form method="post" id="form_id" action="functions.php">
<input type="tel" name="number">
<input type="submit" id="sub" name="sub">
</form>
Here is the link I generate qr codes from.
请帮帮忙!提前致谢。
虽然@jdrzejb的这种方法更准确,我们真的想不通,是什么'$ QR-> QRCODE(); '确实。而且,'url($ _ POST ['number'],$ _POST ['sub']);'只是检查参数是否为空。这个功能没有其他功能。在哪里使用'$ _POST'参数仍然是模糊的。所以这个答案应该改善。 –