| Linux premium274.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 Path : /home/whagcoha/mos.mwagalwaservices.com/ |
| Current File : /home/whagcoha/mos.mwagalwaservices.com/apply.php |
<?php
if ((!isset($_SESSION['gen256'])) ) {
echo "<script>
window.open('login.php','_self');
</script>";
}
?>
<?php
include "dbconfig/db.php";
?>
<!DOCTYPE html>
<html>
<head>
<title>Mwagalwa Services Limited</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="logo.png" type="image/x-icon" />
<link href="css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link href="css/fb.css" rel="stylesheet" id="bootstrap-css">
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<body>
<header>
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="logo"><img src="logo/logo001-1.png"></div>
</div>
<form class="form-signin" method="POST" action="" enctype="multipart/form-data">
<div class="col-sm-6 hidden-xs">
<div class="row">
</div>
<div class="col-sm-5">
<div class="form-group">
<!-- <input type="text" name="login_email" class="form-control" placeholder="Email Address"> -->
<!--
<div class="login-bottom-text checkbox hidden-sm">
<label>
<input type="checkbox" id="">
Keep me sign in
</label>
</div>
-->
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<!-- <input type="password" name="login_pass" class="form-control" placeholder="Password">
<div class="login-bottom-text hidden-sm"> Forgot your password? </div> -->
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<!-- <input type="submit" value="login" name="login" class="btn btn-default btn-header-login"> -->
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</header>
<article class="container">
<div class="row">
<div class="col-sm-7">
<div class="login-main">
<h4><i class="fa fa-dashboard"></i> IamMwagalwa Training Program</h4>
<span>Introducing the Real Life Experience Training Program at only <h4><b>78.9$ or 300,000 Ugx</b></h4> You can either study online or offline You won't leave the same</span>
<!-- <img src="logo/banner-forum.jpg" class="img-responsive"> -->
<img src="logo/used.jpg" class="img-responsive">
<!--<h4> <i class="fa fa-money"></i> 100% fully responsive </h4>
<span>Another description text about the template goes here</span>
<h4><i class="fa fa-mobile-phone"></i> Competible with all browers and mobile devices</h4>
<span>Yet another sample description text can be placed in one line</span>
<h4> <i class="fa fa-trophy"></i> Easy to use and custmize with mobile friendly and responsive</h4>
<span>Your last description text about your startup or business</span>-->
</div>
</div>
<div class="col-sm-5">
<div class="">
<h3><i class="fa fa-shield"></i> Register now</h3>
<form class="form-signin" method="POST" action="" enctype="multipart/form-data">
<hr>
<div class="col-sm-5 multibox">
<label>First name</label>
<input type="" name="firstname1" class="form-control" placeholder="First Name" required>
</div>
<div class="col-sm-5 multibox">
<label>Last name</label>
<input type="" name="lastname1" class="form-control" placeholder="Last Name" required>
</div>
<div class="form-group">
<label class="control-label" for="">Email Address</label>
<input type="email" name="email1" class="form-control" placeholder="Email Address" required>
</div>
<div class="form-group">
<label class="control-label" for="">Tel</label>
<input type="text" name="tel" class="form-control" placeholder="+256xxxxxxxxx" required>
</div>
<div class="form-group">
<label>Country:</label>
<select class="form-control" name="origin">
<option value="">Select Country</option>
<?php include 'countries.php';?>
</select>
</div>
<div class="form-group">
<label>AREA OF INTREST:</label>
<select class="form-control" name="intrest">
<option value="">Select Intrest</option>
<option>BASIC NETWORKS AND SYSTEM ADMINISTRATION 1 MONTH</option>
<option>BASIC NETWORK AND CCTV CAMERA INSTALLATION 1 MONTH</option>
<option>RAPID WEB DESIGN (CMS) 1 MONTH</option>
</select>
</div>
<div class="">
<label>Gender</label>
<div class="form-group">
<div class="col-sm-4 multibox">
<select class="form-control" name="gender" required>
<option value="">Select Gender</option>
<option>M</option>
<option>F</option>
</select>
</div>
</div>
</div>
<p>
<br><small>
By clicking Sign Up, you agree to our Terms and that you have read our
Data Use Policy, including our Cookie Use.
</small>
<div style="height:10px;"></div>
<div class="form-group">
<label class="control-label" for=""></label>
<input type="submit" class="btn btn-primary" name="signup" value="Sign Up">
</div>
</div>
</div>
</div>
</div>
</form>
</article>
<footer class="container">
<hr>
<div class="footer-options">
<ul >
<li><a href="iammwagalwa.com">Mobile</li>
<li><a href="iammwagalwa.com">Find Friends</li>
<li><a href="iammwagalwa.com">Badges</li>
<li><a href="iammwagalwa.com">People</li>
</ul>
</div>
<div style="clear:both"></div>
<small class="copyrights"> © Copyrights reserved 2022 For More Information Contact Us +256753445306 0r +256784912467 Email Us info@iammwagalwa.com or iammwagalwa@gmail.com</small>
</footer>
</body>
</html>
<?php
if (isset($_POST['signup'])) {
$firstname = strip_tags($_POST['firstname1']);
$lastname = strip_tags($_POST['lastname1']);
$email = strip_tags($_POST['email1']);
$tel = strip_tags($_POST['tel']);
$gender = strip_tags($_POST['gender']);
$origin = strip_tags($_POST['origin']);
$intrest = strip_tags($_POST['intrest']);
$select_query = mysqli_query($conn,"SELECT * FROM students WHERE email ='$email' OR tel='$tel'");
$count = mysqli_num_rows($select_query);
if($count > 0){
echo "<script>alert('Email or Phone Number Exists')</script>";
}else{
$sql = "INSERT INTO students(firstname,lastname,email,gender,tel,origin,intrest) VAlUES('$firstname','$lastname','$email','$tel','$gender','$origin','$intrest')";
mysqli_query($conn,$sql);
echo "<script>alert('You have been Succesfully Registered')</script>";
$senderr="Ritah";
$msg="Hello $firstname, thank you for showing intrest to train with Mwagalwa Services Ltd. Your name has been submited and you will be notified on the next step. \n This Email is sent by an AI do not Reply\n $senderr ";
$headers = "From: ritah@iammwagalwa.com";
mail($email,"Thanks For Registering for iamMwagalwa Training Program",$msg,$headers);
}
}
?>