i’m not sure how to explain it correctly, but i would like to use $_POST values like this $_POST[0] and not like this $_POST['form_field_name'].
Let’s say i have 3 form fields so if i’d like to get data from post like this:
echo $_POST[0];
echo $_POST[1];
echo $_POST[2];
I hope you guys understand what i wanna do here.
$_POSTs variables depends on the
nameattribute of the form element as you can read in this link.On the other hand the attribute
nameof the form elements according to W3C always must begin with a letter.But I think you can prepare the $_POST variable before all your code (at the begining of your php script) with:
And then call them in the way as you want, but I think you will previously must detect the order of the array in order to avoid errors by not having the text of each variable.