Accessing E-Signature Image from PHP

  • 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

  • mert JotForm UI Developer
    Replied on January 29, 2016 at 8: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:

    Accessing E Signature Image from PHP Image 1 Screenshot 20

     

    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.

  • RTOApp
    Replied on February 1, 2016 at 8: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

  • Charlie
    Replied on February 2, 2016 at 1: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.