I am receiving four array from a form i do not know how much values in these arresy but here it is confirm that value are linked in both array for example
ID
type
Hname
qty
first value of all array is one record. and so one
i need these records one by one to insert value in data base.
as i can print these arrayes using this script
foreach ( $HTTP_POST_VARS as $key=>$value )
{
if ( gettype( $value ) == "array" )
{
print "$key == <br>\n";
foreach ( $value as $two_dim_value )
print ".........$two_dim_value<br>";
}
else
{
print "$key == $value<br>\n";
}
}
But this not solve the problem it write first array complete and then second array and so on.. but i need first record of all these and socond and so one.. i try to this but not get result
for ($i=0; $i<count($HTTP_POST_VARS); $i++){
print $ID. "ID<br>";
print $type. "type<br>";
print $name. "name<br>";
print $qty. "qty<br>";
}
Any body Help me.....