AddPostVar ('g_name', '
  • Please Enter a Name
  • '); $name = $httpVars->GetVar ('g_name'); $httpVars->AddPostVar ('g_address', '
  • Please Enter an Address
  • '); $address = $httpVars->GetVar ('g_address'); $httpVars->AddPostVar ('g_city', '
  • Please Enter a City
  • '); $city = $httpVars->GetVar ('g_city'); $httpVars->AddPostVar ('g_state', '
  • Please Enter a State
  • '); $astate = $httpVars->GetVar ('g_state'); $httpVars->AddPostVar ('g_zip', '
  • Please Enter a Zip Code
  • '); $zip = $httpVars->GetVar ('g_zip'); $httpVars->AddPostVar ('g_phone', '
  • Please Enter a Phone Number
  • '); $phone = $httpVars->GetVar ('g_phone'); $httpVars->AddPostVar ('g_fax', '', false); $fax = $httpVars->GetVar ('g_fax'); $httpVars->AddPostVar ('g_email', '
  • Please Enter an Email Address
  • '); $email = $httpVars->GetVar ('g_email'); $httpVars->AddPostVar ('g_best_time_morn', '', false); $best_time_morn = $httpVars->GetVar ('g_best_time_morn'); $httpVars->AddPostVar ('g_best_time_aft', '', false); $best_time_aft = $httpVars->GetVar ('g_best_time_aft'); $httpVars->AddPostVar ('g_best_time_eve', '', false); $best_time_eve = $httpVars->GetVar ('g_best_time_eve'); $httpVars->AddPostVar ('g_best_way_phone', '', false); $best_way_phone = $httpVars->GetVar ('g_best_way_phone'); $httpVars->AddPostVar ('g_best_way_fax', '', false); $best_way_fax = $httpVars->GetVar ('g_best_way_fax'); $httpVars->AddPostVar ('g_best_way_email', '', false); $best_way_email = $httpVars->GetVar ('g_best_way_email'); $httpVars->AddPostVar ('g_info', '
  • Please Enter Request Information
  • '); $info = $httpVars->GetVar ('g_info'); //////////////////////////////////////////////////////////////////////////////////// if ($httpVars->GetErrorStr () != '') { $errorStr = ""; } // Everything is good, send emails // else { // Include email class // include ("global/email.php"); // Include subject and message // include ("global/req_text.php"); $fromName = $name; $fromEmail = $email; $result_best_time = ''; $result_best_way = ''; if ($best_time_morn) { $result_best_time = 'Morning'; } elseif ($best_time_aft) { $result_best_time = 'Afternoon'; } elseif ($best_time_eve) { $result_best_time = 'Evening'; } if ($best_way_phone) { $result_best_way = 'Phone'; } elseif ($best_way_fax) { $result_best_way = 'Fax'; } elseif ($best_way_email) { $result_best_way = 'Email'; } $message = sprintf ($message, $name, $address, $city, $state, $zip, $phone, $fax, $email, $result_best_time, $result_best_way, $info); $toName = 'rrconst.com'; $toEmail = 'info@rrconst.com'; // send email notification to rrconst $email = new email (); $email->SendHTMLEmail ($toName, $toEmail, $fromName, $fromEmail, $subject, $message); header("Location: http://rrconst.com/thank2.html"); } } ?> Ralph Rocca Construction, Inc.

    Name


    Address


    City


    State


    Zip


    Phone


    Fax


    Email


    Best time to contact you:
    Morning Afternoon Evening

    Best way to contact you:
    Phone Fax Email

    Request Information




    Ralph Rocca Construction, Inc. ©2003. All Rights Reserved