Forum Moderators: coopster
<?php
establish the connection
IF(isset($_POST['submit'])) {
$flag = false;
IF(check for form validation) {
INSERT INTO TABLE
Display a sucess msg.
}
else {
echo 'please enter all fields';
$flag = true;
}
}
else { //ie if form is not yet submittd
$flag = true;
}
if($flag) {
require_once('form.php'); /* Here the form is included to make things simple as it is a part of an HTML tablein this script . The form triggers this php script */
}
?>
The script doesnt work ... no errors , no msg for invalid form submissions ..
What can possibly be the problem here?