"; // if user submitted feedback, report it if($data[action]) { // check for errors if(!$data[name]) $error[] = "Please enter your name."; if(!$data[email]) $error[] = "Please enter your email address."; //if(!is_email_valid($data[email])) $error[] = "The email address you entered is not valid."; if(!$data[feedback]) $error[] = "Please enter the nature of this feedback."; if(!$error) { // no errors, let's email the feedback $subject = "$data[subject]"; $body = "IP: $REMOTE_ADDR\n"; $body.= "NAME: $data[name]\n"; $body.= "EMAIL: $data[email]\n"; $body.= "USER_NAME: $user[user_name]\n"; $body.= "USER_ID: $user[user_id]\n"; $body.= "\n"; $body.= "FEEDBACK TYPE: $data[type]\n\n"; $body.= "FEEDBACK:\n\n$data[feedback]\n"; @mail($server_admin_email,$subject,$body,"From: $data[email]"); echo "

Thanks for contacting us!

"; echo "We will be in touch with you soon.

If you need more assistance, please give us a call at 802.238.1951."; echo_footer(); exit; } else { // report error and prompt for entry echo ""; echo "Please fix the following problems:

"; echo "

"; } } $feedback_form = array( 'form_action' => $PHP_SELF, 'form_name' => 'data', 'form_elements' => array( 'name' => array ( 'type' => 'text', 'default_value' => "", 'title' => 'Your Name', 'desc' => 'enter your name', 'size' => 30, ), 'email' => array ( 'type' => 'text', 'default_value' => '', 'title' => 'Email Address', 'desc' => 'enter your email address', 'size' => 30, ), 'subject' => array ( 'type' => 'text', 'default_value' => '', 'title' => 'Subject', 'desc' => '', 'size' => 30, ), 'feedback' => array ( 'type' => 'textarea', 'default_value' => '', 'title' => ' ', 'desc' => '
Type your inquiry here.', 'cols' => 40, 'rows' => 10, ), 'action' => array ( 'type' => 'submit', 'title' => ' ', 'default_value' => 'Submit', ), ), ); echo "$content[content]

"; //////// ANALYTICS CODE HERE ////////// echo ""; //////// ANALYTICS CODE HERE ////////// form_create($feedback_form,$data); ?>

Smooth Feather Productions
84 N. 9th St. Suite 409
Brooklyn, NY 11211
Email:Silas@SmoothFeather.com