
Add your business to the OABA members directory
As you may be aware, the Old Amersham Business Association website and member directory will soon be launching. In order for you to be listed on the site, we will need some information from you. Please could you complete the form below, filling in every field where applicable. If you have any questions or encounter any problems, please email info@thewonkyagency.com with full details.
if (isset($_POST["oabaTitle"])) {
echo "BOO";
$status = "OK";
$oabaTitle = $_POST["oabaTitle"];
$oabaWebsite = $_POST["oabaWebsite"];
$oabaPhone = $_POST["oabaPhone"];
$oabaDescription = $_POST["oabaDescription"];
$oabaOpening = $_POST["oabaOpening"];
$oabaAddress1 = $_POST["oabaAddress1"];
$oabaAddress2 = $_POST["oabaAddress2"];
$oabaCity = $_POST["oabaCity"];
$oabaCounty = $_POST["oabaCounty"];
$oabaPostcode = $_POST["oabaPostcode"];
if (strlen($oabaTitle) <2 ) { // checking name
$msg .="You forgot to enter your business name
";
$status= "NOTOK"; }
if (strlen($oabaAddress1) <2 ) { // checking name
$msg .="You forgot to enter your Address line 1
";
$status= "NOTOK"; }
if (strlen($oabaCity) <2 ) { // checking name
$msg .="You forgot to enter your city
";
$status= "NOTOK"; }
if (strlen($oabaCounty) <2 ) { // checking name
$msg .="You forgot to enter your county
";
$status= "NOTOK"; }
if (strlen($oabaPostcode) <2 ) { // checking name
$msg .="You forgot to enter your postcode
";
$status= "NOTOK"; }
if ($status == "OK") {
$insertmember = $dbh->prepare("INSERT INTO tblbusinesses (busTitle, busWebsite, busPhone, busAddress1, busAddress2, busCity, busCounty, busPostcode, busDescription, busOpening) VALUES (?,?,?,?,?,?,?,?,?,?)");
if ($insertmember->execute(array($oabaTitle, $oabaWebsite, $oabaPhone, $oabaAddress1, $oabaAddress2, $oabaCity, $oabaCounty, $oabaPostcode, $oabaDescription, $oabaOpening))) {
mail("matt@thewonkyagency.com", "OABA Form submission", "Someone has submitted the oaba form");
?>
header("location:/?complete");
ob_end_flush();
}
}
} // end of if post
?>
if (isset($_GET["complete"])) {
?>
Thank you for adding your details.
}
?>
if ($status == "NOTOK") {
echo "
".$msg."
";
}
?>