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

    Removing [] from post request

    Asked by rileymotorcompany on February 13, 2017 at 11:18 AM

    I would like to have the ability to remove the brackets, [], from the post request, when a field is comprised of more than one field's value. For example, my birthday field is currently 3 fields, which get combined into a single field and, on the outgoing post request sends birthday[] instead of just birthday

    There are a couple more forms fields as well the the [] and need that removed so this will pass into the software I am using.

    Page URL:

  • Profile Image
    JotForm Support

    Answered by EltonCris on February 13, 2017 at 12:34 PM

    Enclosed with square brackets are its key values. In PHP, arrays are formatted in such way. And array elements can be accessed using the array[key] syntax.


    You can use

    $_POST['bdate']['0'] to get the month

    $_POST['bdate']['1'] to get the day

    $_POST['bdate']['2'] to get the year

    You can actually define in your script to strip off the [] symbols. I'm sure that's possible.

    Hope this helps!