POST data: unique names are always lower case

  • dadform
    Asked on September 12, 2018 at 11:17 PM

    Why is it that data passed in to a form is upper/lowercase, which is carried through the build process, then data passed out is all lowercase? The difference in case sensitivity prior-to and after the form is NOT DOCUMENTED that i could find. the https://www.jotform.com/show-post-data/ url should be referenced by the http post data switch in the build interface, not buried in a Q&A response.

  • Nik_C
    Replied on September 13, 2018 at 2:53 AM

    I tested this issue but I wasn't able to replicate, data entered in uppercase stays uppercase:

    1536821459Screen Shot 2018 09 13 at 8 Screenshot 10

    If you're still experiencing this issue, you can try using the strtoupper PHP method:

    <?php

    $str = "Some sample text";

    $str = strtoupper($str);

    echo $str; // Prints SOME SAMPLE TEXT

    ?>

    Let us know if you have any further questions.

    Thank you!

  • dadform
    Replied on September 13, 2018 at 3:32 AM

    my apologies, i was not clear enough.
    it is the field names that get shifted to lowercase, not the data in them.

    such as passing in $url='https://form.jotform.com/00000000?myProducts%5bcountry%5d=United%20States&typeA='.$acctname.'"';

    the field names are upper/lower: typeA, myProducts

    passing out $_POST['typea'];$_POST['myproducts']['12'];

    the field names are now all lower typea, myproducts

  • Victoria_K
    Replied on September 13, 2018 at 6:54 AM

    Hello,

    Apologies on the inconvenience caused. Our system handles question names as lower case. To keep backward compatibility we cannot update this on our side. But you can handle this on your backend. The best option would be to check the unique names through the https://www.jotform.com/show-post-data/ if you need to POST the data. 

    Please let us know if you need any further help.