Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End php variables Reply To: php variables

#171481

yes i am doing for form..
i used htmlspecialchars so i don’t get sql injection or something like that ..

but this code

foreach( $list as $fieldName ){
    if( empty( $_POST[$fieldName] ) ){
        $error[$fieldName] = "You have missed the $fieldName field.";
    }
}

print you have missed db field isn’t it ??? i want to print you have missed database field