What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Accessing E-Signature Image from PHP

    Asked by webnetsupport on January 28, 2016 at 11:19 PM

    Hi,

     

    I would like to know if it is possible to access the e-signature image through php. 

     

    I am getting the base64 in $_POST['signature'] but when I deocde and save to a file it doesn't work. Is there any easy way to get the e-signature image from php once the user submit the form?

     

    Regards,

     

    Manzoor

    e-signature image doesn't work and Getting work
  • Profile Image
    JotForm Support

    Answered by mert on January 29, 2016 at 08:09 AM

    Hi Manzoor,

    The name for getting the data from the "E-Signature" widget is "signature", you have entered correct value. Please, see it from the below:

     

    However, the requesting PHP could be wrong. Please, check the following guide, it gives all of the information about getting post data from your form with PHP:

    http://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

     

    For further assistance, please do let us know.

    Thanks.

  • Profile Image

    Answered by RTOApp on February 01, 2016 at 08:55 PM

    Hi Thank you. This is now solved. 

    I have another issue, is it possible to populate the e-signature field from url parameters? (e.g. to pass a signature image in URL and populate the field upon loading).

     

    Thank you

  • Profile Image
    JotForm Support

    Answered by Charlie on February 02, 2016 at 01:53 AM

    I am not quite sure if that is possible. You can pass text string and number values and prepopulate, however, passing a signature image via URL parameters on another signature widget? Not that I can think of. You can pass the download link of the signature image and pass it on another PHP code and save it on your database.

    You won't be able to prepopulate a signature widget because the user needs to actually sign it. I hope that helps.