samedi 28 février 2015

Array $_POST without using multiple input fields

I was wondering if it's possible to receive arrays in $_POST but with a single input field in the html and without sending the form with ajax?


Normally I would do this



<input type="hidden" name="array[]" />
<input type="hidden" name="array[]" />
<input type="hidden" name="array[]" />
.............


I was thinking of something like this



<input type="array" name="array" value="1,2,3,4" / >

Aucun commentaire:

Enregistrer un commentaire