w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
foreach loop only outputs last array value in $_POST
$result2[$value] = array( $options_key =>
$_POST[$options_key][$value] ); // problem !

Change to:

if( !isset($result2[$value])) $result2[$value] = array();
$result2[$value][$options_key] = $_POST[$options_key][$value];




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.