如何为每个注册用户创建QR码?

时间:2018-09-25 04:25:40

标签: php qr-code

在我的网站上注册帐户后,我希望我的用户拥有自己的唯一QR码。 QR码将仅包含会员序列号,供我们扫描用户是否真正是我们的会员。所以我可以问大家,我将如何实现这一目标?我的整个网站都使用PHP编写。

1 个答案:

答案 0 :(得分:0)

这是在php中生成qr代码的代码

<body onload="loadGraph()">
   <form action='https://chart.googleapis.com/chart' method='POST' id='post_form' onsubmit="this.action = 'https://chart.googleapis.com/chart?chid=' + (new Date()).getMilliseconds();
return true;">  <input type='hidden' name='cht' value='qr' />
<input type='hidden' name='cht' value='qr' />
<input type='hidden' name='chs' value='300x300' />
<input type='hidden' name='chl' value='This is your QR code. You need to pass the users serial number here  '/>
 <input type='submit' value="Download your Qr code Here" />
</form>

根据您的要求相应地更改代码。

相关问题