require_once('config.php'); //mysql_select_db("ollie");
$validErrors = array();
$message = "";
$showForm = true;
if(ts("save")=="Save")
if(($validErrors=isValid()) === true)
if( insertIt() == false) $message = "Error, please contact O'Ollie about this problem!";
else $showForm = false;
function insertIt(){
global $dal;
$videoInsert = $dal-> getInsert();
$videoInsert->addPair("prjname",ts("prjname"));
$videoInsert->addPair("type",ts("type"));
$videoInsert->addPair("budget",ts("budget"));
$videoInsert->addPair("style",ts("style"));
$videoInsert->addPair("planner_name",ts("planner_name"));
$videoInsert->addPair("email",ts("email"));
$videoInsert->addPair("phone",ts("phone"));
$videoInsert->addPair("password",ts("password"));
$videoInsert->addPair("note",ts("note"));
$videoInsert->setTable("video_production");
return $dal->executeInsert($videoInsert);
}
function isValid(){
global $err_message;
require_once('admin/_libs/validate.php');
$validator = new Validate("error","Errors:");
$validator->doValidate("isMandatory","prjname", "Please type the name of the project!");
$validator->doValidate("isMandatory","type", "Please select the type!");
$validator->doValidate("isMandatory","budget", "Please select the budget information!");
$validator->doValidate("isMandatory","style", "Please type the purpose and style of the video!");
$validator->doValidate("isMandatory","planner_name", "Please enter your name!");
$validator->doValidate("isName","planner_name", "Please specify an appropriate name!");
$validator->doValidate("isMandatory","email", "Please type your email!");
$validator->doValidate("isEmail","email", "The email address is invalid");
$validator->doValidate("isMandatory","phone", "Please type your phone number!");
$validator->doValidate("isFormatedPhone","phone", "The format of the phone number is invalid!");
$validator->doValidate("isMandatory","password", "Please type a password!");
$validator->doValidate("isAlphaNumStrict","password", "Password not valid!");
$validator->doValidate("isCompared", "prjname", "The project name confirmation is not correct!", ts("conf_prjname"),"==");
$validator->doValidate("isCompared", "password", "The password confirmation is not correct!", ts("conf_password"),"==");
$validator->checkErrors();
if($validator->isValid === true) return true;
else {$err_message = '
'."One or more of your answers is incomplete or incorrect, please check below!"."";
return $validator->errorList;}
}
?>
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
||
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() You’re done! You will receive an e-mail confirmation from O’Ollie within the next two business days. You can then expect a phone call to set up a presentation within two or three business days. If you’re in a huge hurry, you can call us at 510-558-8611 and we’ll make every effort to accommodate you. We look forward to working with you to create a truly unique video production! |
home | entertainment | video production | examples | about us | news |contact us © Copyright O' Ollie Entertainment, Inc. 2005 |