Please enter your username.

'; } else { $cont_username = escape_data($_POST['cont_username']); } if (empty($_POST['cont_pass'])) { // Check for password. $error = true; $errmsg .= '

Please enter your password.

'; } else { $cont_pass = md5(trim($_POST['cont_pass'])); } if ( $error == false ) { // If everything's OK so far $getloginquery = " SELECT cont_id, cont_companyname, cont_username, cont_pass FROM contractors WHERE cont_username='$cont_username' AND cont_pass='$cont_pass' LIMIT 1"; $getlogin = mysqli_query($dbc,$getloginquery) or trigger_error('Bad getlogin query: '.mysqli_error($dbc)); if (!$getlogin || mysqli_num_rows($getlogin) > 1 ) { include 'technical.php'; include 'footer.php'; exit; } if ( mysqli_num_rows($getlogin) < 1) { $error = true; $errmsg .='The username and password entered do not match those on file.'; } else { $row = mysqli_fetch_array($getlogin); $cont_id = $row['cont_id']; $cont_username = $row['cont_username']; $cont_companyname = $row['cont_companyname']; $_SESSION['cont_id']= $cont_id; $_SESSION['cont_companyname']= $cont_companyname; $_SESSION['cont_username']= $cont_username; $_SESSION['accesslevel'] = 1; $_SESSION['loggedin'] = true; $go = $config['url'].'/contractors/'; header("Location: $go"); include 'footer.php'; exit; } } // END if error = false } if ( !isset($_POST['submitted']) || $errmsg == true ) { ?>

Septic Contractor Log-in


Forgot your password? Click here to reset it.


If you're a septic contractor wishing to be included in SepticContractors.com, please visit our registration page