Will data order in post form be the same to it in web form?

Posted by Relax on Stack Overflow See other posts from Stack Overflow or by Relax
Published on 2010-04-02T09:32:14Z Indexed on 2010/04/02 9:33 UTC
Read the original article Hit count: 214

Filed under:

Assuming there are 5 inputs in web form

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

When server side receive the post data, i use a foreach to accept data, say

$the_same = new array();
foreach($_REQUEST as $data)
    $the_same[] = $data;

Will the order of data saved in server side be the same to it in web form?

© Stack Overflow or respective owner

Related posts about php