Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tongue blasting coder #98

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<title>Registration Form</title>
</head>
<body>
<div class="container">
<div class="heading">
<h2>Registration Form</h2>
</div>
<div class="form-data">
<form action="process_form" method="POST" id="form" name="form" >
<label for="firstname">Enter Firstname</label><br>
<input type="text" id="name" name="firstname" placeholder="Firstname" required><br>
<label for="lastname">Enter Lastname</label><br>
<input type="text" id="name" name="lastname" placeholder="Lastname" required><br>
<label for="number">Contact Number</label><br>
<input type="tel" name="number" id="phone" placeholder="Phone number"><br>
<label for="email">Email Address</label><br>
<input type="email" name="email" id="email" placeholder="Email Address" required><br>
<label for="password">Enter Password</label><br>
<input type="password" name="password" id="password1" placeholder="Enter password" required><br>
<input type="submit" class="btn" name="submit" value="Signup"/>
</form>
</div>
</div>
</body>
</html>
49 changes: 49 additions & 0 deletions process_form.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table cellpadding="6">
<?php
if (isset($_REQUEST['submit'])) {
$firtName = $_REQUEST['firstname'];
$lastName = $_REQUEST['lastname'];
$number = $_REQUEST['number'];
$email = $_REQUEST['email'];
$password = $_REQUEST['password'];
} else {
echo 'Unauthorised access';
exit();
}
?>
<tr>
<th>First Name</th>
<td><?php echo $firtName; ?></td>
</tr>
<tr>
<th>Last Name</th>
<td><?php echo $lastName; ?></td>
</tr>
<tr>
<th>Contact Number</th>
<td><?php echo $number; ?></td>
</tr>
<tr>
<th>Email</th>
<td><?php echo $email; ?></td>
</tr>
<tr>
<th>Password</th>
<td><?php echo $password; ?></td>
</tr>
</table>
</body>
</html>
34 changes: 34 additions & 0 deletions tongueBlastingCoder/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<title>Registration Form</title>
</head>
<body>
<div class="container">
<div class="heading">
<h2>Registration Form</h2>
</div>
<div class="form-data">
<form action="process_form" method="POST" id="form" name="form" >
<label for="firstname">Enter Firstname</label><br>
<input type="text" id="name" name="firstname" placeholder="Firstname" required><br>
<label for="lastname">Enter Lastname</label><br>
<input type="text" id="name" name="lastname" placeholder="Lastname" required><br>
<label for="number">Contact Number</label><br>
<input type="tel" name="number" id="phone" placeholder="Phone number"><br>
<label for="email">Email Address</label><br>
<input type="email" name="email" id="email" placeholder="Email Address" required><br>
<label for="password">Enter Password</label><br>
<input type="password" name="password" id="password1" placeholder="Enter password" required><br>
<input type="submit" class="btn" name="submit" value="Signup"/>
</form>
</div>
</div>
</body>
</html>
49 changes: 49 additions & 0 deletions tongueBlastingCoder/process_form.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table cellpadding="6">
<?php
if (isset($_REQUEST['submit'])) {
$firtName = $_REQUEST['firstname'];
$lastName = $_REQUEST['lastname'];
$number = $_REQUEST['number'];
$email = $_REQUEST['email'];
$password = $_REQUEST['password'];
} else {
echo 'Unauthorised access';
exit();
}
?>
<tr>
<th>First Name</th>
<td><?php echo $firtName; ?></td>
</tr>
<tr>
<th>Last Name</th>
<td><?php echo $lastName; ?></td>
</tr>
<tr>
<th>Contact Number</th>
<td><?php echo $number; ?></td>
</tr>
<tr>
<th>Email</th>
<td><?php echo $email; ?></td>
</tr>
<tr>
<th>Password</th>
<td><?php echo $password; ?></td>
</tr>
</table>
</body>
</html>