- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
foreach($PROP as $k1 => $val1)
{
if(is_array($val1))
{
foreach($val1 as $k2 => $val2)
{
$text_name = preg_replace("/([^a-z0-9])/is", "_", "PROP[".$k1."][".$k2."][VALUE][TEXT]");
if(array_key_exists($text_name, $_POST))
{
$type_name = preg_replace("/([^a-z0-9])/is", "_", "PROP[".$k1."][".$k2."][VALUE][TYPE]");
$PROP[$k1][$k2]["VALUE"] = array(
"TEXT" => $_POST[$text_name],
"TYPE" => $_POST[$type_name],
);
}
}
}
}
foreach($PROP as $k1 => $val1)
{
if(is_array($val1))
{
foreach($val1 as $k2 => $val2)
{
if(!is_array($val2))
$PROP[$k1][$k2] = array("VALUE" => $val2);
}
}
}
barbarbar 14.11.2014 07:54 # −1