2

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).

I am open to using Flash, jQuery, or PHP, but I’m not sure where to start.

TRiG
  • 10,148
  • 7
  • 57
  • 107
Denoteone
  • 4,043
  • 21
  • 96
  • 150
  • 2
    Just a note - you don't necessarily need a physical signature from someone to make it legitimate. See [wikipedia/electronic_signature](http://en.wikipedia.org/wiki/Electronic_signature) – Rusty Fausak Sep 24 '11 at 23:17
  • Is there a reason why you wouldn't want to do this with a third party service like [DocuSign](http://www.docusign.com/)? – TrentonMcManus Sep 25 '11 at 02:37

1 Answers1

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.

Community
  • 1
  • 1
fvu
  • 32,488
  • 6
  • 61
  • 79