|









|
The more questions you ask, the more you can educate yourself about your own health.
The purpose of our answers is to provide information to help you understatnd medical conditions and to inform you of medical options. The information and opinions presented are intended for educational purposes only and are not intended for diagnosis and treatment. Please see a physician for medical problems requiring diagnosis and treatment, in addition to regular health maintenance visits. If this is an emergent, or even an urgent problem, see a physician immediately. Please allow adequate turn-around-time for responses to your question. Any email question becomes the property of Mainstreet Doctor and may be used (with appropriate measures taken for confidentiality) for educational purposes. All rights reserved.
I agree to the above and am ready to ask my question.
GLOBAL $PHP_SELF;function process_email()
{ global $name, $email, $city, $state, $zip, $sex, $occupation, $problem;
$email_out = "The following email was sent out from your Website\n";
$email_out .= "Name: $name\n";
$email_out .= "Email: $email\n";
$email_out .= "City: $city\n";
$email_out .= "State: $state\n";
$email_out .= "Country: $country\n"; $email_out .= "Zip: $zip\n";
$email_out .= "Sex: $sex\n";
$email_out .= "Occupation: $occupation\n";
$email_out .= "Problem Description: $problem\n";
$to_address
="sahnirahul@hotmail.com,dr.ebersole@mainstreetdoctor.com,dreber@npcc.net";
$subject = "Website Feedback";
mail($to_address, $subject, $email_out);
}
function review_email(){
global $title, $name, $email, $city, $state, $zip, $sex, $occupation, $problem;
$title = "Email confirmation";
$html = " This is your e-mail confirmation";
$html .= "";
$html .= "| Name: | $name | ";
$html .= "| Email: | $email | ";
$html .= "| City: | $city | ";
$html .= "| State: | $state | ";
$html .= "| Zip: | $zip | ";
$html .= "| Sex: | $sex | ";
$html .= "| Occupation: | $occupation | ";
$html .= "| Problem Description: | $problem | ";
$html .= " ";
return $html;
}
function display_form(){
global $title;
$title = "Email your Doctor";
$html = "";
$html .= "";
return $html;
}
echo $title ;
if ($submit){
echo process_email();
echo review_email();
}
else
echo display_form();
?>
|