Home › Forums › Back End › Empty Form Field Validation? › Reply To: Empty Form Field Validation?
January 12, 2014 at 6:50 pm
#160199
Participant
Fatal error: Call to undefined function connect() on line 34 which is
$DB = connect();
line 34 in my gist is:
$DB = get_PDO_connection();
Are you using this, or are you trying to replace the PDO code with your mysql_* code?
It should be simple to display errors for empty fields regardless of what code is used.
If you submit invalid values (empty values, or an invalid email address) with the form, the database-related code won’t run.
edit: I’ve tested my code, it runs as expected.