Send submission to MySQL database using PHP: any idea how I could get the field name?

  • Profile Image
    sepulchralsilence
    Asked on June 29, 2018 at 11:29 AM

    Hello.

    I'm in the process of connecting a form made with jotform to my SQL database
    The issue I'm having is that the section that is receiving the mp3/wav file uploads on jotform has no visible field name, and so I can't pass the required file to my database (through $_POST).
    Any idea how I could get the field name? I've searched in the advanced area and can't seem to find any option to grab the field name.
    Below is a picture that can help explain the problem.

    Thank you for the attention :)

  • Profile Image
    BDAVID
    Answered on June 29, 2018 at 12:05 PM

    What is your form in question? In order to find them easily, enable the "Send Post Data" setting in your form:

    1530288041sendpostdata.png

    Then put the following URL in your Thank You page: https://www.jotform.com/show-post-data/

    1530288148URL_001.png

    Finally, do a real submission in your form in order to see the PHP code, example:

    Result:

    1530288224result_004.png

    Let us know if you need more help.

  • Profile Image
    sepulchralsilence
    Answered on June 29, 2018 at 02:56 PM

    Thank you for your help.