$field) { foreach($badStrings as $v2) { if(strpos($field, $v2) !== false) { return; } } } $param['SiteName'] = SITE_TITLE; $param['adminTo'] = MAIL_CONTACT; $param['adminCc'] = MAIL_CONTACT_CC; $param['adminBCc'] = MAIL_CONTACT_BCC; $param['clientSignature'] = CLIENT_NAME; $param['clientFromName'] = CLIENT_NAME; $param['clientFromEmail'] = MAIL_FROM; $param['Title'] = 'Contact Form'; $contact_form->send_contact_form($param, $values); $fields[41] = $values['FIELDS']['FName']; $fields[43] = $values['FIELDS']['LName']; $fields[295] = $values['FIELDS']['Email']; $fields[53] = $values['FIELDS']['Phone']; $fields[50] = $values['FIELDS']['State']; $groups = array (CONTACT_LIST => true); $params = array ( 'HTMLEmail' => $HTML, 'AllNews' => $News, 'ThirdParty' => $ThirdParty, 'no_optin' => true ); logog_add_contact (LOGOG_ACCOUNT, $fields, $groups, $params); $smarty->assign('send', true); } $contact_form = new contact_form(); $contact_form->format = 'ca'; $contact_form->first_states['Alberta'] = 'Alberta'; $contact_form->first_states['British Columbia'] = 'British Columbia'; $contact_form->first_states['Manitoba'] = 'Manitoba'; $contact_form->first_states['New Brunswick'] = 'New Brunswick'; $contact_form->first_states['Newfoundland'] = 'Newfoundland'; $contact_form->first_states['Northwest Territories'] = 'Northwest Territories'; $contact_form->first_states['Nova Scotia'] = 'Nova Scotia'; $contact_form->first_states['Ontario'] = 'Ontario'; $contact_form->first_states['Prince Edward Island'] = 'Prince Edward Island'; $contact_form->first_states['Quebec'] = 'Quebec'; $contact_form->first_states['Saskatchewan'] = 'Saskatchewan'; $contact_form->first_states['Yukon'] = 'Yukon'; $contact_form->first_states[' '] = ' '; // if ($_SESSION[lang] == 'fr') { $message_phone = 'Veuillez saisir votre numéro de téléphone'; $message_comment = 'Veuillez saisir votre message'; $inquiry = 'Question d’ordre générale'; $report_error = 'Rapportez une erreur'; $url_error = 'URL où l’erreur s’est produite'; $about = 'Sujet'; $submit = 'ENVOYER'; } else { $message_phone = 'Your phone is required'; $message_comment = 'Your Message is required'; $inquiry = 'General Inquiry'; $report_error = 'Report An Error'; $url_error = 'Copy/Paste URL where error occured'; $about = 'Regarding'; $submit = 'SEND'; } $default_fields = $contact_form->get_default_fields(); $default_fields['State']['attributes']['id'] = "State"; $new_default_fields = array ('FName' => $default_fields['FName'], 'LName' => $default_fields['LName'], 'Email' => $default_fields['Email'], 'Phone' => array('type' => 'text', 'name' => 'Phone', 'label' => 'Phone', 'attributes' => array('size' => 20, 'maxlength' => 50, 'id' => 'Phone'), 'rules' => array ('required' => array('type' => 'required', 'message' => $message_phone ) ) ), 'ReportURL' => array('type' => 'text', 'name' => 'ReportURL', 'label' => $url_error, 'attributes' => array('size' => 30, 'maxlength' => 254, 'id' => 'ReportURL'), ), 'State' => $default_fields['State'], 'Regarding' => array ('type' => 'select', 'name' => 'Regarding', 'label' => '   '.$about, 'options' => array('General Inquiry' => $inquiry, 'Report An Error' => $report_error ), 'attributes' => array('onchange' => 'dropdown()', 'id' => 'Regarding'), ), 'Comment' => array ('type' => 'textarea', 'name' => 'Comment', 'label' => 'Message', 'attributes' => array('cols'=> 40, 'rows'=> 7), 'rules' => array ('required' => array('type' => 'required', 'message' => $message_comment ) ) ), 'SUBMIT' => array( 'type' => 'submit', 'name' => 'SUBMIT', 'label' => $submit, 'attributes' => array('class' => 'form_button'), ) ); if ($_SESSION['lang'] == 'fr') { $new_default_fields['FName']['label'] = 'Prénom'; $new_default_fields['LName']['label'] = 'Nom'; $new_default_fields['Email']['label'] = 'Email'; $new_default_fields['Phone']['label'] = 'Téléphone'; $new_default_fields['State']['label'] = 'État / Province'; $new_default_fields['FName']['rules']['required']['message'] = 'Veuillez saisir votre prénom'; $new_default_fields['LName']['rules']['required']['message'] = 'Veuillez saisir votre nom'; $new_default_fields['Email']['rules']['required']['message'] = 'Veuillez saisir votre email'; $new_default_fields['Phone']['rules']['required']['message'] = 'Veuillez saisir votre téléphone'; $new_default_fields['State']['rules']['required']['message'] = 'Veuillez saisir votre état / province'; $new_default_fields['State']['options'][' '] = '** Choisir un état ou une province **'; $new_default_fields['State']['options']["--"] = '** Autre **'; } $contact_form->set_fields($new_default_fields); $contact_form->create_fields(); $contact_form->create_renderer($smarty); $form_data = $contact_form->renderer->toArray(); ?> Contact Us. Online stories, games, and downloads for kids.

 

Contact us


[Fields marked with a * are required fields]