/* ************************************************************** BEGIN CONFIGURATION AND OTHER GLOBAL VARIABLES ************************************************************** */ /* this has the read/write and other text file functions */ include 'includes/textfile.php'; /* contains various functions for handling arrays */ include 'includes/arrays.php'; /* contains catalog-specific functions */ include 'includes/catfuncs.php'; // first we need to read in the config data so we need to include the catalog vars include 'includes/ctlgvars.php'; // fetch a keyed array of all the config variables $arrConfig = getConfigData($strConfigPath, $arrConfigKeys); // to address $strMailTo = $arrConfig['admin_email']; // from address $strMailFrom = "From: maillist@claudiakelly.com\r\nReply-To: maillist@claudiakelly.com\r\n"; // page name $strPageName = "contact"; /* ************************************************************** END CONFIGURATION AND OTHER GLOBAL VARIABLES ************************************************************** */ // this gets any form variables and the relative path to this page include 'includes/formvars.php'; /* the "$action" var is what the select case statement switches on it will be unset to show the form and set to "mail" to send the emails */ if (!isset($action)) $action = ""; /* ************************************************************** FUNCTIONS BEGIN HERE ************************************************************** */ // ************************************************************** include 'includes/pageends.php'; /* VALIDATE_EMAIL This function validates that a given email is in the proper format/syntax. It does NOT tell if it's a real email address. */ function Validate_Email($email){ return (preg_match("'^[a-z0-9_.=-]+@([a-z0-9-]+\.)+([a-z]{2,3})\$'i", $email)); } /* ************************************************************** FUNCTIONS END HERE ************************************************************** */ writePageHeader("Claudia Kelly's Collection - Contact", "contact"); ?> switch ($action){ case "": //set up the table and form ?>
You can send regular mail to Claudia at this address:
Claudia Kelly's Collection
(and Stuffed Shirt Tie Co.)
1916 Pike Place #12-341
Seattle WA 98101
...or phone at 1-253-941-2665
...or use the form below:
// end case "" break; case "mail": // catch any missing fields and put up error page if ($name == "" || $subject == "" || $message == ""){ echo "All comments are read and pondered. If you included your email in a general feedback comment someone will be back with you shortly! Sales and booking inquiries answered ASAP!
// end case "mail" break; } // end switch statement ?> writePageFooter(); ?>