Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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] {

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions