Quantcast
Channel: User lfx - Stack Overflow
Viewing all articles
Browse latest Browse all 39

Answer by lfx for Will data order in post form be the same to it in web form?

$
0
0

Better way to do in html:

<input name='the_same[]' value='different' />

Then in server:

$the_same = new array();foreach($_POST['the_same'] as $data) // or $_GET if you prefer    $the_same[] = $data;

In this way no variable will be overwrite.


Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>