Accessing E-Signature Image from PHP

  • Profile Image
    webnetsupport
    Asked 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

  • Profile Image
    mert
    Answered 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
    RTOApp
    Answered 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
    Charlie
    Answered 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.