How would I go about collecting a signature from a site visitor?
我如何从网站访问者处收集签名?
I am building my site in PHP and would like to give the user the ability to add their signature to a form. They can use their mouse to draw the signature. The signature would be compressed and added to the rest of the form data using the GD library (if possible).
我正在用PHP构建我的网站,并希望让用户能够将他们的签名添加到表单中。他们可以用鼠标绘制签名。签名将被压缩并使用GD库添加到表单数据的其余部分(如果可能)。
I am open to using Flash, jQuery, or PHP, but I’m not sure where to start.
我愿意使用Flash,jQuery或PHP,但我不知道从哪里开始。
1 个解决方案
#1
3
Please have a look at Capture Signature using HTML5 and iPad. The solution proposed by heycam (with a demo) uses SVG to capture the signature. This svg path is ASCII so it's very easy to manipulate and store without losing precision or quality.
请使用HTML5和iPad查看Capture Signature。 heycam提出的解决方案(带演示)使用SVG捕获签名。这个svg路径是ASCII,因此在不损失精度或质量的情况下操作和存储非常容易。
#1
3
Please have a look at Capture Signature using HTML5 and iPad. The solution proposed by heycam (with a demo) uses SVG to capture the signature. This svg path is ASCII so it's very easy to manipulate and store without losing precision or quality.
请使用HTML5和iPad查看Capture Signature。 heycam提出的解决方案(带演示)使用SVG捕获签名。这个svg路径是ASCII,因此在不损失精度或质量的情况下操作和存储非常容易。