-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathform.php
More file actions
23 lines (19 loc) · 685 Bytes
/
form.php
File metadata and controls
23 lines (19 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
if (isset($_POST['submitEmail'])) {
$email = $_POST['email'];
$name = $_POST['name'];
$password = $_POST['password'];
echo "<h4>Welcome ". $name ."</h4>";
echo "<h4>Email: ". $email ."</h4>";
echo "<h4>Password: ". $password ."</h4>";
}
?>
<!DOCTYPE html>
<html>
<form action="form.php" method="GET">
<input name="email" type="email" required placeholder="Enter your email"><br>
<input name="name" type="text" required placeholder="Enter your name"><br>
<input type="password" required placeholder="Enter your password" name="password"><br>
<button type="submit" name="submitEmail">Submit</button>
</form>
<html