Sponsor Donations
if ($_POST['submit']) { foreach($_POST as $k => $v) { $$k = $v; } $require = array('company','contact','phone'); $error = array(); foreach($require as $x => $y) { if ($$y == "") { $error[] = "- Please enter a value for $y"; } } if (sizeof($error) > 0) { foreach ($error as $a => $b) { $msg .="$b
\n"; } } else { $to = "sbryant75@tampabay.rr.com"; $from = "From: Donation Form
"; $subject = "New Donation Inquery"; $message = "------------------\n"; $message .= "Company: $company\n"; $message .= "Contact: $contact\n"; $message .= "Address: $address\n"; $message .= "City: $city\n"; $message .= "State: $state\n"; $message .= "Zip: $zip\n"; $message .= "Phone: $phone\n"; $message .= "Value of Donation: $value\n"; $message .= "Description of donated items:\n"; $message .= "$description\n"; $message .= "------------------"; if (mail($to,$subject,$message,$from)) { $msg = "Thank you for your donation inquery. We will contact you as soon as possible to go over your information."; } else { $msg = "Failed to send information via email. Please try again. If this problem persists, please call us."; } } echo "
$msg
"; } ?>
Sponsor's Name/Company
Contact Person
Address
City
State
Zip
Phone
Total Value of Donation
Description of each item donated. Include limitations, conditions and validity dates, etc. if applicable.
=$description?>
HOME
|
PHIL’S STORY
|
ABOUT US
|
SCHOLARSHIP
|
CONTACTS
|
MISSION / VISION
|
SPONSORS / DONORS
|
EVENTS
|
MELANOMA FACTS
Copyright 2007 pab40foundation.org
Website Designed and Maintained by:
www.ProfitGate.net