Ok so i have a form, when the submit button is clicked i want two functions to get called. One is a javascript form validator, the other is a php function to insert information to a database.
<form method="POST" action="your_patient_info.php" name="registration"
onsubmit="return validateForm() && return databaseEntry()">
The way it is now, neither functions get called. I need the validate form to be called first and if it passes, then call the database entry one.