/.
, , , tx_field_name, , html, hf_field_name html hx_field_name... script , .
- , , , , foo, bar , _ - ( html-, )
p.s: , ,
$values = $_POST;
$n_val = count($values);
$i = 0;
foreach($values AS $key => $value){
$pairs .= " `$key` = '$value' ";
if($n_val > $i){
$pairs .= ', ';
}
}
thedbyouprefer_query("UPDATE table SET $pairs WHERE id = '42'");
to process the form, but matching it with php (.. and a few prepared racks will not be bad)
source
share