PHP-Code:
foreach ($_POST as $key => $value)
Das war es was ich wollte!!!
foreach ($_POST as $key => $value)
$zahlen_array = array();
foreach ($_POST as $key => $value) {
$zahlen_array['TTH'] = str_replace('TTH_', '', $key);
$zahlen_array['TTG'] = str_replace('TTG_', '', $key);
}
echo "<pre>";
print_r($zahlen_array);
echo "</pre>";
<input name='".$row['ID']."_TTG' type='text' size='1' maxlength='2'></input>
foreach($_POST as $name=>$value) {
if(substr($name,0,3)!='TTH') continue;
$index=substr($name,4);
$index=intval($index);
echo "name=$name index=$index value=$value<br />";
}
$neue_var_mit_der_vier = str_replace('TTH_', '', $deine_var);
Einen Kommentar schreiben: