Forums

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

Home Forums Back End Empty Form Field Validation? Reply To: Empty Form Field Validation?

#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.