session_start(); require_once ("./include/common.php"); require_once ("./class/info.class.php"); require_once ("./include/function.php"); if(!isset($_SESSION['from_page'])) { if(!isset($_SERVER["HTTP_REFERER"])) { $_SESSION['from_page'] = "index.php"; }else { $_SESSION['from_page'] = $_SERVER["HTTP_REFERER"]; } } $error = 0; $email = trim($_POST['email']); $firstname = trim($_POST['firstname']); $lastname = trim($_POST['lastname']); $company = trim($_POST['company']); $area = trim($_POST['areacode']); $phone = trim($_POST['phone']); $newsletter = trim($_POST['newsletter']); $hear = trim($_POST['hear']); $comments = trim($_POST['comments']); $info_date = date("Y-m-d H:i:s"); if (isset($_POST['action']) && ($_POST['action'] == "info")) { if (is_valid_email($email) == "no") { $email_failed="
|
|
| |||||||||||
|