All required fields must be filled.'; } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $alertMessage = '
Invalid email format.
'; } elseif (!ctype_digit($mobile) || strlen($mobile) < 10 || strlen($mobile) > 15) { $alertMessage = '
Invalid mobile number.
'; } elseif (!is_numeric($amount) || $amount <= 0) { $alertMessage = '
Donation amount must be a valid number.
'; } elseif (!ctype_digit($zip_code)) { $alertMessage = '
Zip Code must contain only digits.
'; } else { // Insert into donation table $query = "INSERT INTO donations (name, mobile, donation_date, email, amount, pan_number, country, state, city, landmark, address, zip_code, purpose) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; if ($stmt = $con->prepare($query)) { $stmt->bind_param("sssssssssssss", $name, $mobile, $donation_date, $email, $amount, $pan_number, $country, $state, $city, $landmark, $address, $zip_code, $purpose); if ($stmt->execute()) { $last_id = $stmt->insert_id; $_SESSION['donation_id'] = $last_id; header("Location: donation-mail.php"); // Redirect to email page exit(); } else { $alertMessage = '
Error processing your donation: ' . $stmt->error . '
'; } $stmt->close(); } else { $alertMessage = '
Database error. Please try again later.
'; } } } ?> Donation Form

Join us in making a difference — Become a donor today!

mandala pattern

Make a Donation

Your generous donations help us maintain the temple, organize spiritual programs, and support various charitable activities. Every offering, big or small, spreads Sai Baba’s message of love, service, and unity. By donating, you become part of this divine mission.

Notes :

  • Temple Maintenance: Help in the upkeep and beautification of the temple.
  • Spiritual Programs: Support daily aartis, bhajans, and special pooja ceremonies.
  • Charitable Activities: Contribute towards feeding the needy and medical assistance.
  • Educational Support: Aid in funding education for underprivileged children.
  • Festival Celebrations: Help organize grand celebrations of religious festivals.