how i want display from my checkbox if i using array for example this is a checkbox
<input type="checkbox" name="pref_City[] value="JB">JB<input type="text" name="test[]"
<input type="checkbox" name="pref_City[] value="KL">KL<input type="text" name="test[]"
how i want to display this two array to become like this after i select the two box and i input number 2 to KL and 3 to JB
JB 3
KL 2
for your information my code is like this
foreach ($pref_City as $city)
{ echo "$city .<br>"; }
foreach ($test as $tes)
{ echo "$tes .<br>"; }
Hope anyone can help me..anyway Thank..