echo $error_msg;?>
session_start(); require_once ("./include/common.php"); require_once ("./class/article.class.php"); require_once ("./class/log.class.php"); require_once ("./include/function.php"); require_once ("./class/request_trial.class.php"); $error = 0; $email = trim($_POST['formemail']); $name = trim($_POST['formname']); $website = trim($_POST['formwebsite']); $comments = trim($_POST['formcomments']); $phone = trim($_POST['formphone']); $company = trim($_POST['formcompany']); $position = trim($_POST['formposition']); $performance_management = (!empty($_POST['formperformance_management']))?$_POST['formperformance_management']:'N'; $job_performance_management = (!empty($_POST['formjob_relevant_performance_management']))?$_POST['formjob_relevant_performance_management']:'N'; $capability_development = (!empty($_POST['formcapability_development']))?$_POST['formcapability_development']:'N'; $competency_management = (!empty($_POST['formcompetency_management']))?$_POST['formcompetency_management']:'N'; $feedback = (!empty($_POST['formfeedback']))?$_POST['formfeedback']:'N'; $succession_modules = (!empty($_POST['formsuccession_modules']))?$_POST['formsuccession_modules']:'N'; if (isset($_POST['action']) && ($_POST['action'] == "document")) { if (is_valid_email($email) == "no") { $email_failed="Please enter a valid and not hotmail or yahoo email."; $error = 1; } if ($name == "") { $name_failed="Please enter your name."; $error = 1; } if ($company == "") { $company_failed = "Please enter your Company Name."; $error = 1; } if ($position == "") { $position_failed = "Please enter your position in the company."; $error = 1; } if($phone == "") { $phone_failed = "Enter a valid phone number."; $error = 1; } if ($error == 1) { $error_msg = "
Required fields input missing or error.
|
Dear $name:
Thanks for registering for trial version. We will be in contact with you shortly.
In the meantime, if you have any questions, please email us at info@centranum.com
Thank you,
The Centranum Team
|
echo $error_msg;?>