# See: http://www.w3schools.com/html/html_form_input_types.asp
if (strpos($this->name,'password') !== false) return 'password" autocomplete="off';
if ($this->numeric() !== false) return 'number" step="any';
+ if ($this->autoincrement) return 'text" readonly="readonly';
return 'text';
# Html5 only
if (strpos($this->name,'email') !== false) return 'email'; # no safari
$where .= " LIMIT 1";
}
- $fields = array_filter($fields,function($v){return empty($v->autoincrement);});
+ #$fields = array_filter($fields,function($v){return empty($v->autoincrement);});
$sql = "SELECT *" . $this->select_extras();
$sql .= " FROM ".$this->sql_name().$where;