\n"; print "\n"; } ?>




*
Denotes a required field.

Title: 
* First Name: 
* Surname: 
Company: 
* Address: 




* County: 
* Postcode: 
* Country: 
* Telephone Number:    
* Fax Number:    
* e-mail: 
* Sport: 
* Event of Interest: 
* Package of Interest: 
* Date of Event: 
* Approx. Party Size: 
Additional Details: 

  


If you do not want SportsDays to share
your personal information please
uncheck this box.

"; $footer = "
If you would prefer to make your booking enquiry by phone please call us on:

"; if ($op != "ds") { // display form echo "$formblock $footer"; } else if ($op == "ds") { $errArray = array(); if ($sender_fname == "") { $errArray[] = "First name"; $send = "no"; } if ($sender_lname == "") { $errArray[] = "Surname"; $send = "no"; } if ($sender_address1 == "") { $errArray[] = "Address"; $send = "no"; } if ($sender_county == "") { $errArray[] = "County"; $send = "no"; } if ($sender_postcode == "") { $errArray[] = "Post Code"; $send = "no"; } if ($sender_areacode == "") { $errArray[] = "Telephone area code"; $send = "no"; } if ($sender_phone == "") { $errArray[] = "Telephone number"; $send = "no"; } if(!preg_match ("/^.+@.+\..+/", "$sender_email")){ $errArray[] = "E-mail address"; $send = "no"; } if ($select2 == "") { $errArray[] = "Event of interest"; $send = "no"; } if ($select3 == "") { $errArray[] = "Package of interest"; $send = "no"; } if ($send != "no") { $submitted = "yes"; $to = "hospitality@sportsdays.co.uk"; #$to = "ray@pimdesign.com"; $subject = "Hospitality Enquiry"; $mailheaders = "From: $sender_email"; $msg = "Name: $sender_title $sender_fname $sender_lname\n"; $msg .= "Company: $sender_company\n"; $msg .= "Address: \n$sender_address1\n"; if ($sender_address2 != "") { $msg .= " $sender_address2\n"; } if ($sender_address3 != "") { $msg .= " $sender_address3\n"; } $msg .= "$sender_county\n"; $msg .= "$sender_postcode\n"; $msg .= "$sender_country\n"; $msg .= "Tel: $sender_areacode $sender_phone\n"; if ($sender_faxareacode != "") { $msg .= "Fax: $sender_faxareacode"; } if ($sender_fax != "") { $msg .= " $sender_fax\n"; } $msg .= "Sport: $select1\n"; $msg .= "Event: $select2\n"; $msg .= "Package: $select3\n"; $msg .= "Date: $day $month, $year\n"; $msg .= "Party Size: $sender_partysize\n"; $msg .= "Additional Info: \n".stripslashes($sender_additional)."\n"; mail($to, $subject, $msg, $mailheaders); // Courtesy E-mail $to = "$sender_email"; $subject = "Your SportsDays Hospitality Enquiry"; $mailheaders = "From: hospitality@sportsdays.co.uk"; $replyMsg .= "Dear $sender_title $sender_lname,\n\n"; $replyMsg .= "Thank you for your enquiry.\n\nIt has been posted to our sales team where a consultant will be in contact with you shortly. However, if your requirement is of a more urgent nature, please call us on:\n\n"; $replyMsg .= " 01638 666 660\n\n"; $replyMsg .= "Kind regards,\n\n"; $replyMsg .= "SportsDays Hospitality Organisers\n"; $replyMsg .= "http://www.sportsdays.info\n\n"; mail($to, $subject, $replyMsg, $mailheaders); echo "Enquiry Sent

Thank you for your enquiry $sender_fname.

Your details have been sent to our booking office. "; echo "We will get back to you shortly. If your enquiry is of a more urgent nature don't hesistate to call us on:

      01638 666 660

There is no need to print this page as we have already sent you an e-mail containing this information.

Thank you again for your enquiry,

SportsDays.co.uk\n"; } else if ($send == "no") { $errMsg = "You didn't enter information for the following required field(s):

"; $limit = (sizeof($errArray) - 2); $blanks = sizeof($errArray); if ($blanks >= 3) { for ($a = 0; $a < $limit; $a++) { $errMsg .= "$errArray[$a], "; } $a = $limit; $errMsg .= "$errArray[$a] and "; $a++; $errMsg .= "$errArray[$a]."; print "$errMsg

\n $formblock"; } if ($blanks == 2) { print "$errMsg $errArray[0] and $errArray[1].

\n $formblock"; } if ($blanks == 1) { print "$errMsg $errArray[0].

\n $formblock"; } if ($blanks == 0) { print "Error: Didn't match any conditions: $limit"; } } } ?>




\n"; print "\n"; } ?>