$value) { // assign to temporary variable and strip whitespace if not an array $temp = is_array($value) ? $value : trim($value); // if empty and required, add to $missing array if (empty($temp) && in_array($key, $required)) { array_push($missing, $key); } // otherwise, assign to a variable of the same name as $key elseif (in_array($key, $expected)) { ${$key} = $temp; } } } // validate the email address if (!empty($email)) { // regex to ensure no illegal characters in email address $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/'; // reject the email address if it doesn't match if (!preg_match($checkEmail, $email)) { array_push($missing, 'email'); } } // go ahead only if not suspect and all required fields OK if (!$suspect && empty($missing)) { // build the message $message = "Name: $name\n\n"; $message .= "Email: $email\n\n"; $message .= "Comments: $comments"; // limit line length to 70 characters $message = wordwrap($message, 70); // create additional headers $additionalHeaders = 'Christopher Cook '; if (!empty($email)) { $additionalHeaders .= "\r\nReply-To: $email"; } // send it $mailSent = mail($to, $subject, $message, $additionalHeaders); if ($mailSent) { // $missing is no longer needed if the email is sent, so unset it unset($missing); } } } ?> GardenStudio Photography of Owatonna and surrounding southern Minnesota
front of Garden Studio    

Michael Yencho

Garden Studio is located just
one block west of the high school
228 School Street East
Owatonna, MN 55060
Call ahead: 507-451-9599
or email: mike@gardenstudio.biz

Contact Mike

We look forward to having you as a member of GFE.
If you wish to contact us for any comments or questions, please use the form below or you can call us at 507-451-8661.

Please complete the missing item(s) indicated.
Sorry, there was a problem sending your message. Please try later.
Your message has been sent. Thank you for your feedback.

/>

/>