How can I validate a field when submitting to be a number with 1 decimal?!?! Normally when I validate I do it like this:
if(!$fieldname){
$err_fieldname = '<font style="color:#FF0000;">'._ERROR.'!</font>';
CreateForm();
}
I have seen some workarounds with js, but is it possible with pure PHP?