-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.php
35 lines (24 loc) · 880 Bytes
/
post.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
require('dbconnection.php');
if (isset($_POST["submit"])) {
$firstname = ($_POST["first_name"]) ;
$lastname = ($_POST["last_name"]) ;
$email = ($_POST["email"]) ;
$image = ($_POST["image"]) ;
$telephone = ($_POST["phone_number"]) ;
$location = ($_POST["location"]) ;
$lineage = ($_POST["lineage"] ) ;
$gender = ($_POST["gender"] ) ;
$sql = "INSERT INTO elder_signup(fname, lname, email, image, telephone, lineage, location, gender) VALUES ('$firstname','$lastname','$email','$image','$telephone','$lineage','$location', '$gender')";
if( mysqli_query($conn , $sql) )
{
flush();
header("https://bamugoya.000webhostapp.com/index.php/");
echo 'You\'ll be redirected in about 5 secs. If not, click <a href="https://bamugoya.000webhostapp.com/index.php/">here to go back</a>.';
?>
}
}
else{
echo"you failed to register";
}
?>