<form action="" method="post" enctype="multipart/form-data" id="form">
<?php
$first = 0;
+ $is_first = true;
if (!$fields) {
echo "<p class='error'>" . lang('You have no privileges to update this table.') . "\n";
} else {
$value = "";
$function = "uuid";
}
- if ($field["auto_increment"] || $function == "now" || $function == "uuid") {
+ if ($is_first && ($field["auto_increment"] || $function == "now" || $function == "uuid")) {
$first++;
+ } else {
+ $is_first = false;
}
input($field, $value, $function);
echo "\n";