Php Code Given Exercise 2 Get Echo Body Margin 0 Padding 0 Font Family Arial Form Margin 2 Q43809092

PHP code that is given :
<?php
// Here is where your preprocessing code goes
// An example is already given to you for the First Name
$fname = $_GET[‘fname’];
?>
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8″>
<title>Exercise 2 – GET Echo</title>
<style>
body {
margin:0;
padding:0;
font-family: Arial;
}
form {
margin:20px;
}
input[type=”text”], input[type=”password”] {
width:150px;
padding:3px;
font-size:1em;
}
input[type=”submit”] {
padding:3px;
font-size:1em;
}
label {
display:inline-block;
width:150px;
}
.input-container {
padding:5px;
}
</style>
</head>
<body>
<form action=”task1.php” method=”GET”>
<p><strong>Echo Form:</strong></p>
<div class=”input-container”>
<label for=”fname”>First Name</label>
<input type=”text” name=”fname” value=”” placeholder=”FirstName” id=”fname”>
</div>
<div class=”input-container”>
<label for=”lname”>Last Name</label>
<input type=”text” name=”lname” value=”” placeholder=”Last Name”id=”lname”>
</div>
<div class=”input-container”>
<label for=”email”>Email Address</label>
<input type=”text” name=”email” value=”” placeholder=”Email”id=”email”>
</div>
<div class=”input-container”>
<label for=”password”>Password</label>
<input type=”text” name=”password” value=””placeholder=”Password” id=”Password”>
</div>
<div class=”input-container”>
<input type=”submit” value=”Echo Values”/>
</div>
</form>
<section>
<h1>Echoed <code>GET</code>Values<h1>
<p><strong>First Name:</strong> <?php echo$fname; ?></p>
<?php
// This is where you echo your values
?>
</section>
</body>
</html>
You have been given the file exercise-2.php. This file contains a HTML form with various inputs. Your task is to echo out the values passed by the form to itself (exercise-2.php) via a GET request. What you are doing is called a callback. You are to display all the values entered or chosen by the user in the form within the provided section of the exercise-2.php file: <section> <h1>Echoed <code>GET</code> Values<h1> <?php // ##Echo values start here## </section> To get full marks in this task the password must be hidden with the use of ‘#’. There is to be the same amount of ‘#’ characters for the number of characters in the password input by the user. For example: If the user entered the password ‘dinosaur’ it should display (8 ‘#’ characters) Password = ######## Also, there must be no errors displayed – for instance undefined index! Show transcribed image text You have been given the file exercise-2.php. This file contains a HTML form with various inputs. Your task is to echo out the values passed by the form to itself (exercise-2.php) via a GET request. What you are doing is called a callback. You are to display all the values entered or chosen by the user in the form within the provided section of the exercise-2.php file: Echoed GET Values
Expert Answer
Answer to PHP code that is given : Exercise 2 – GET Echo body { margin:0; padding:0; font-family: Arial; } form { margin:20px; } i…
OR