<?
/*
    CHFEEDBACK.PHP Feedback Form PHP Script Ver 2.01.
    Generated by thesitewizard.com's Feedback Form Wizard.
    Copyright 2000-2003 by Christopher Heng. All rights reserved.
    thesitewizard and thefreecountry are trademarks of Christopher Heng.

    $Id: phpscript.txt 1.1 2003/04/17 11:53:45 chris Exp $

    Get the latest version, free, from:
        http://www.thesitewizard.com/wizards/feedbackform.shtml

    You can contact me at:
        http://www.thesitewizard.com/feedback.php

    LICENCE TERMS
    
    1. You may use this script on your website, with or
    without modifications, free of charge.
    
    2. You may NOT distribute or republish this script,
    whether modified or not. The script is meant for your
    personal use on your website, and can only be
    distributed by the author, Christopher Heng.
    
    3. THE SCRIPT AND ITS DOCUMENTATION ARE PROVIDED
    "AS IS", WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
    IMPLIED WARRANTY OF MECHANTABILITY OR FITNESS FOR A
    PARTICULAR PURPOSE. YOU AGREE TO BEAR ALL RISKS AND
    LIABILITIES ARISING FROM THE USE OF THE SCRIPT,
    ITS DOCUMENTATION AND THE INFORMATION PROVIDED BY THE
    SCRIPTS AND THE DOCUMENTATION.

    If you cannot agree to any of the above conditions, you
    may not use the script. 
    
    Although it is NOT required, I would be most grateful
    if you could also link to thesitewizard.com at:

       http://www.thesitewizard.com/

*/

// ------------- CONFIGURABLE SECTION ------------------------

// $mailto - set to the email address you want the form
// sent to, eg
//$mailto		= "youremailaddress@example.com" ;	   

//phpinfo();



//$mailto = 'carls28@bellsouth.net' ;	 
//$mailto = 'carl.v.smith@boeing.com' ;

$mailto = "mgreene@hiwaay.net";
//$mailto = 'lgreene@knology.net' ;

// $subject - set to the Subject line of the email, eg
//$subject	= "Feedback Form" ;

$subject = "HTC Volunteer Survey (New)" ;

// the pages to be displayed, eg
//$formurl		= "http://www.example.com/feedback.html" ;
//$errorurl		= "http://www.example.com/error.html" ;
//$thankyouurl	= "http://www.example.com/thankyou.html" ;

$formurl = "http://www.huntsvilletrackclub.org/survey.html" ;
$errorurl = "http://www.huntsvilletrackclub.org/error.html" ;
$thankyouurl = "http://www.huntsvilletrackclub.org/thanks.html" ;

// -------------------- END OF CONFIGURABLE SECTION ---------------

$name = $_POST['name'] ;
$email = $_POST['email'] ;
$comments = $_POST['comments'] ;  
  
$HTC_Member_Number = $_POST['HTC_Member_Number'];
$Phone = $_POST['Phone'];
$Age = $_POST['Age'];
$Sex = $_POST['Sex'];
$City = $_POST['City'];
$State = $_POST['State'];
$Zip = $_POST['Zip'];
$Occupation = $_POST['Occupation'];

$Any_Job = $_POST['Any_Job'];	
$Course_Sentry = $_POST['Course_Sentry'];	
$Worker_Recruiter = $_POST['Worker_Recruiter'];	
$Course_Measurement = $_POST['Course_Measurement'];
$Race_Announcer = $_POST['Race_Announcer'];
$Starting_Line = $_POST['Starting_Line'];
$Radio_Communications = $_POST['Radio_Communications'];
$RacePacketAssembly = $_POST['RacePacketAssembly'];
$FinishLineSetup = $_POST['FinishLineSetup'];
$FinishTimer = $_POST['FinishTimer'];
$RacePacketHandout = $_POST['RacePacketHandout'];
$RaceRegistration = $_POST['RaceRegistration'];
$BarCodePullerHandler = $_POST['BarCodePullerHandler'];
$SpectatorFlyerHandout = $_POST['SpectatorFlyerHandout'];
$FinishLineHelper = $_POST['FinishLineHelper'];
$PostRaceFoodDistribution = $_POST['PostRaceFoodDistribution'];
$CourseSafety = $_POST['CourseSafety'];
$PostRaceCleanup = $_POST['PostRaceCleanup'];
$LeadBikeCar = $_POST['LeadBikeCar'];
$ComputerBarCodeReading = $_POST['ComputerBarCodeReading'];
$CourseSetupPickup = $_POST['CourseSetupPickup'];
$ComputerDataEntry = $_POST['ComputerDataEntry'];
$SplitTimer = $_POST['SplitTimer'];
$RaceResultsProcessing = $_POST['RaceResultsProcessing'];
$AidStationWorker = $_POST['AidStationWorker'];
$AwardsCeremony = $_POST['AwardsCeremony'];
$EquipmentTransport = $_POST['EquipmentTransport'];
$EquipmentTransport1 = $_POST['EquipmentTransport1'];
$MedicalSupport = $_POST['MedicalSupport'];
$MedicalSupport1 = $_POST['MedicalSupport1'];

$RaceTaskLeader = $_POST['RaceTaskLeader'];
$Task = $_POST['Task'];
$AnyRace = $_POST['AnyRace'];
$XCRuns = $_POST['XCRuns'];
$RaceDirectorRace = $_POST['RaceDirectorRace'];

$RaceDirector = $_POST['RaceDirector'];
$RaceDirectorSpecificRace = $_POST['RaceDirectorSpecificRace'];
$AssistantRaceDirector = $_POST['AssistantRaceDirector'];
$AssistantRaceDirectorSpecificRace = $_POST['AssistantRaceDirectorSpecificRace'];	

$President = $_POST['President'];
$VPRacesEquipment = $_POST['VPRacesEquipment'];
$Secretary = $_POST['Secretary'];
$VPPrograms = $_POST['VPPrograms'];
$VPCommunications = $_POST['VPCommunications'];
$Treasurer = $_POST['Treasurer'];	


$Membership = $_POST['Membership'];
$ClubMeetings = $_POST['ClubMeetings'];
$OfficerElectionNominatingCommittee = $_POST['OfficerElectionNominatingCommittee'];
$Newsletter = $_POST['Newsletter'];
$PrintingandMailing = $_POST['PrintingandMailing'];
$SpecialCommitteeShortTerm = $_POST['SpecialCommitteeShortTerm'];
$Advertising = $_POST['Advertising'];
$InvitedRunnerHost = $_POST['InvitedRunnerHost'];
$WebpageUpdates = $_POST['WebpageUpdates'];
$Sponsors = $_POST['Sponsors'];	   
$ClubApparel = $_POST['ClubApparel'];	
$ArtDevelopment = $_POST['ArtDevelopment'];	
$Media = $_POST['Media'];	
$VolunteerCoordinator = $_POST['VolunteerCoordinator'];	
$Other = $_POST['Other'];	
$ClubFunctionsOther = $_POST['ClubFunctionsOther'];	
$ClubPicnic = $_POST['ClubPicnic'];	
$VolunteerDatabase = $_POST['VolunteerDatabase'];	
$ClubFunctionTaskLeader = $_POST['ClubFunctionTaskLeader'];	
$ClubFunctionTaskLeaderTask = $_POST['ClubFunctionTaskLeaderTask'];	

$RegularVolunteer = $_POST['RegularVolunteer'];	
$OccasionalVolunteer = $_POST['OccasionalVolunteer'];	



$http_referrer = getenv( "HTTP_REFERER" );

if (!isset($_POST['email'])) {
	header( "Location: $formurl" );
	exit ;
}
if (empty($name) || empty($email) ) {
   header( "Location: $errorurl" );
   exit ;
}

$messageproper =

	"This message was sent from:\n" .
	"$http_referrer\n" .
	
	"\n\n------------------------------------------------------------\n" . 
	"------------------- HTC Volunteer Survey -------------------\n\n" .
	"------------------------- COMMENTS -------------------------\n\n" .
	$comments.
	"\n\n------------------------------------------------------------\n" .
	"\n\n------------------------------------------------------------\n" .	   
	
	"Name = $name\n".
	"Phone = $Phone\n".
	"Age = $Age\n".
	"sex = $Sex\n".
	"City = $City\n".
	"State = $State\n".
	"Zip = $Zip\n".
	"Occupation = $Occupation\n".
	"HTC Member number =   $HTC_Member_Number\n".
	 "\n\n------------------------------------------------------------\n" .	
	"Any Job = $Any_Job\n".
	"Course Sentry = $Course_Sentry\n".
	"Worker Recruiter = $Worker_Recruiter\n". 
	"Course Measurement = $Course_Measurement\n".
	"Race Announcer = $Race_Announcer\n".	
	"Starting Line = $Starting_Line\n".
	"Radio Communications = $Radio_Communications\n".	
	"Race Packet Assembly = $RacePacketAssembly\n".
	"Finish Line Setup = $FinishLineSetup\n".
	"Race Packet Handout = $RacePacketHandout\n".
	"Finish Timer = $FinishTimer\n".
	"Race Registration = $RaceRegistration\n".
	"Bar Code Puller = $BarCodePullerHandler\n".
	"Spectator Flyer Handout = $SpectatorFlyerHandout\n".
	"Finish Line Helper = $FinishLineHelper\n".
	"Post Race Food Distribution = $PostRaceFoodDistribution\n".
	"Course Safety = $CourseSafety\n".
	"Post Race Cleanup = $PostRaceCleanup\n".
	"Lead Bike Car = $LeadBikeCar\n".
	"Computer Bar Code Reading = $ComputerBarCodeReading\n".
	"Course Setup Pickup = $CourseSetupPickup\n".
	"Computer Data Entry = $ComputerDataEntry\n".
	"Split Timer = $SplitTimer\n".
	"Race Results Processing = $RaceResultsProcessing\n".
	"Aid Station Worker = $AidStationWorker\n".
	"Awards Ceremony = $AwardsCeremony\n".
	"Equipment Transport = $EquipmentTransport\n".
	"Vehicle Type = $EquipmentTransport1\n".
	"Medical Support = $MedicalSupport\n".
	"Profession = $MedicalSupport1\n".	
	
	"\n\n------------------------------------------------------------\n" .	   
	"Race Task Leader = $RaceTaskLeader ". 
	"Task  = $Task\n".		
	
	"\n\n------------------------------------------------------------\n" .
	"I would like to volunteer for any race = $AnyRace\n".
	"I would like to volunteer for a specific race = $XCRuns".
	" - $RaceDirectorRace\n".	  
	
	"\n\n------------------------------------------------------------\n" .
	"I would like to Race Direct - $RaceDirector".
	" for this race = $RaceDirectorSpecificRace\n".
	
	"\n\n------------------------------------------------------------\n" .
	"I would like to Assistant Race Direct - $AssistantRaceDirector".
	" for this race = $AssistantRaceDirectorSpecificRace\n". 
	
	"\n\n------------------------------------------------------------\n" .
	"Accept the following club officer nominations:\n".
	"President = $President\n".
	"VP-RacesEquipment = $VPRacesEquipment\n".
	"Secretary = $Secretary\n".
	"VP-Programs = $VPPrograms\n".
	"VP-Communications = $VPCommunications\n".
	"Treasurer = $Treasurer\n".
	
	 "\n\n------------------------------------------------------------\n" .
	 "I will volunteer for the other club functions:\n".
	 "Membership = $Membership\n".
	 "ClubMeetings = $ClubMeetings\n".
	 "OfficerElectionNominatingCommittee = $OfficerElectionNominatingCommittee\n".
	 "Newsletter = $Newsletter\n".
	 "PrintingandMailing = $PrintingandMailing\n".
	 "SpecialCommitteeShortTerm = $SpecialCommitteeShortTerm\n".
	 "Advertising = $Advertising\n".
	 "InvitedRunnerHost = $InvitedRunnerHost\n".
	 "WebpageUpdates = $WebpageUpdates\n".
	 "Sponsors = $Sponsors\n".
	 "ClubApparel = $ClubApparel\n". 	
	 "ArtDevelopment = $ArtDevelopment\n".
	 "Media = $Media\n".
	 "VolunteerCoordinator = $VolunteerCoordinator\n".
	 "Other Function = $Other = ".
	 "$ClubFunctionsOther\n". 
	 "ClubPicnic = $ClubPicnic\n".
	 "VolunteerDatabase = $VolunteerDatabase\n". 
	 
	  "\n\n------------------------------------------------------------\n" .
	 "I will volunteer for the other club function task leader:\n".	
	 "ClubFunctionTaskLeader = $ClubFunctionTaskLeader for this task:". 
	 "$ClubFunctionTaskLeaderTask\n". 
	 
	 "\n\n------------------------------------------------------------\n" .	 
	   "I am a regular volunteer = $RegularVolunteer\n".
	   "I am an occassional volunteer = $OccasionalVolunteer\n";		   
	   
	   
	   //declare a variable
//$vars = get_defined_vars();
//simply print it
//print_r($vars);
	   
	   
	 
	 
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.01" );
header( "Location: $thankyouurl" );
exit ;

?>
