addField("Fname", true, "text", "", "", "", ""); $formValidation->addField("Lname", true, "text", "", "", "", ""); $formValidation->addField("Addr", true, "text", "", "", "", ""); $formValidation->addField("City", true, "text", "", "", "", ""); $formValidation->addField("State", true, "text", "", "", "", ""); $formValidation->addField("Zip", true, "text", "", "", "", ""); $formValidation->addField("E_mail", true, "text", "email", "", "", ""); $formValidation->addField("Phone", true, "text", "", "", "", ""); $formValidation->addField("h1", true, "text", "", "", "", ""); $formValidation->addField("h2", true, "text", "", "", "", ""); $formValidation->addField("describe1", true, "text", "", "", "", ""); $tNGs->prepareValidation($formValidation); // End trigger //start Trigger_SendEmail trigger //remove this line if you want to edit the code by hand function Trigger_SendEmail(&$tNG) { $emailObj = new tNG_Email($tNG); $emailObj->setFrom("{E_mail}"); $emailObj->setTo("palmeri@leisure-systems.com"); //$emailObj->setTo("larrywoods@cox.net"); $emailObj->setCC(""); $emailObj->setBCC(""); $emailObj->setSubject("Request for Franchise Information"); //WriteContent method $emailObj->setContent("To: palmeri@leisure-systems.com\nFrom: {E_mail}\n\nRequest for Franchise Information\n-------------------------------------------------\n{Fname} {Lname}\n{Addr}\n{City}, {State} {Zip}\n\n{Phone}\n{E_mail}\nHave own an RV park or campground: {RV}\nFor Years: {years}\n Campground name: {park}\nLocation: {location}\nInterested in purchasing a location for a franchise: {franchise}\nCamping/RVing experience: {describe1}"); $emailObj->setEncoding("ISO-8859-1"); $emailObj->setFormat("Text"); $emailObj->setImportance("Normal"); return $emailObj->Execute(); } //end Trigger_SendEmail trigger // Make a custom transaction instance $customTransaction = new tNG_custom($conn_connCY); $tNGs->addTransaction($customTransaction); // Register triggers $customTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Custom1"); $customTransaction->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation); $customTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "thanks.html"); $customTransaction->registerTrigger("AFTER", "Trigger_SendEmail", 40); // Add columns $customTransaction->addColumn("Fname", "STRING_TYPE", "POST", "Fname"); $customTransaction->addColumn("Lname", "STRING_TYPE", "POST", "Lname"); $customTransaction->addColumn("Addr", "STRING_TYPE", "POST", "Addr"); $customTransaction->addColumn("City", "STRING_TYPE", "POST", "City"); $customTransaction->addColumn("State", "STRING_TYPE", "POST", "State"); $customTransaction->addColumn("Zip", "STRING_TYPE", "POST", "Zip"); $customTransaction->addColumn("E_mail", "STRING_TYPE", "POST", "E_mail"); $customTransaction->addColumn("Phone", "STRING_TYPE", "POST", "Phone"); $customTransaction->addColumn("RV", "STRING_TYPE", "POST", "RV"); $customTransaction->addColumn("years", "STRING_TYPE", "POST", "years"); $customTransaction->addColumn("park", "STRING_TYPE", "POST", "park"); $customTransaction->addColumn("location", "STRING_TYPE", "POST", "location"); $customTransaction->addColumn("franchise", "STRING_TYPE", "POST", "franchise"); $customTransaction->addColumn("describe1", "STRING_TYPE", "POST", "describe1"); // End of custom transaction instance // Execute all the registered transactions $tNGs->executeTransactions(); // Get the transaction recordset $rscustom = $tNGs->getRecordset("custom"); $row_rscustom = mysql_fetch_assoc($rscustom); $totalRows_rscustom = mysql_num_rows($rscustom); ?>
![]() ![]() ![]() |
|||||
| displayValidationRules();?>Contact Us | |||||
|
|
||||
| Home | About | Why
A Jellystone Park? | Testimonials | Contact Us | Press
Releases | Trade Show Copyright © 2006 Leisure Systems, Inc. All rights reserved. TM & © Hanna-Barbera. (s06) |
|||||