connect_error) { die("Connection failed: " . $conn->connect_error); } // Initialize variables $business_name = $first_name = $last_name = $email = $phone = $sector = ""; $errors = array(); $success = false; // Form submission if ($_SERVER["REQUEST_METHOD"] == "POST") { // Validate and sanitize inputs $business_name = clean_input($_POST["business_name"]); if (empty($business_name)) { $errors["business_name"] = "Business name is required"; } $first_name = clean_input($_POST["first_name"]); if (empty($first_name)) { $errors["first_name"] = "First name is required"; } $last_name = clean_input($_POST["last_name"]); if (empty($last_name)) { $errors["last_name"] = "Last name is required"; } $email = clean_input($_POST["email"]); if (empty($email)) { $errors["email"] = "Email is required"; } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $errors["email"] = "Invalid email format"; } $phone = clean_input($_POST["phone"]); if (empty($phone)) { $errors["phone"] = "Phone number is required"; } $sector = clean_input($_POST["sector"]); if (empty($sector)) { $errors["sector"] = "Business sector is required"; } $agree_terms = isset($_POST["agree_terms"]) ? 1 : 0; if (!$agree_terms) { $errors["agree_terms"] = "You must agree to the terms and conditions"; } // If no errors, insert into database if (empty($errors)) { $stmt = $conn->prepare("INSERT INTO business_registrations (business_name, first_name, last_name, email, phone, sector, agree_terms) VALUES (?, ?, ?, ?, ?, ?, ?)"); $stmt->bind_param("ssssssi", $business_name, $first_name, $last_name, $email, $phone, $sector, $agree_terms); if ($stmt->execute()) { $success = true; // Reset form fields $business_name = $first_name = $last_name = $email = $phone = $sector = ""; } else { $errors["database"] = "Error: " . $stmt->error; } $stmt->close(); } } // Function to clean input data function clean_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } // Close connection $conn->close(); ?>

Ready to Grow Your MSME?

Join our network of successful MSMEs gaining access to financing, markets, training and support services.

Registration is free and takes less than 5 minutes. Let's build your business together!

Who can join?

Micro enterprises (1-10 employees)

Small businesses (11-50 employees)

Medium businesses (51-250 employees)

Startups & entrepreneurs

Register Your Business

Thank you for registering! We will contact you soon.
#register" novalidate>