Question: PHP code that is given : Exercise 2 - GET Echo body { margin:0; padding:0; font-family: Arial; } form { margin:20px; } input[type=text], input[type=password] {

 PHP code that is given : Exercise 2 - GET Echo

PHP code that is given :

// An example is already given to you for the First Name

$fname = $_GET['fname']; ?>

Exercise 2 - GET Echo

Echo Form:

Echoed GET Values

First Name:

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

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!