php help on posting value to other form in array for mat

I have two pages in one page i am posting values in array
echo “

<input type=“text” size=“17” maxlength=“20” name=“name.$i”> <input type=“text” size=“17” maxlength=“4” name=“cur.$i”> <input type=“text” size=“17” maxlength=“4” name=“prev.$i”> <input type=“text” size=“17” maxlength=“1” name=“room.$i”> ”;
then how to catch those values in array in the second page

i can see the value posted as
[name_0] => Lakhan
[cur_0] => 511
[prev_0] => 506
[room_0] => 1
[name_1] => Rabi
[cur_1] => 297
[prev_1] => 292
[room_1] => 1
[name_2] => Sunil
[cur_2] => 2428
[prev_2] => 2400
[room_2] => 2
[amount] => 1200

by impkying echo command

<?php echo "
echo "
"; //how to keep the value in array which have been received in this script i tried but not succeded ?>


please i need urgent suggestion.

Hi there,

I’m not entirely sure what it is you are after, but it may help you to do the following:

<input type="text" name="name[]" />
<input type="text" name="cur[]" />
<input type="text" name="prev[]" />

This will fill your $_POST array with three arrays (name,cur,prev). Try it out, use the

 method and let me know if that helps at all.
Sponsor our Newsletter | Privacy Policy | Terms of Service