Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you do each step and explain it precisely! This is the content of the fbi.txt file: skinner,gatekeeper||>>>> This is the content of the spies.txt

Can you do each step and explain it precisely!

This is the content of the fbi.txt file:

skinner,gatekeeper||>>>>

This is the content of the spies.txt file:

dale,the government||>>>>

image text in transcribedimage text in transcribedimage text in transcribed

1. Create the following folder structure in your htdocs folder on your computer: spies - js - img - CSS - includes 2. Download the fbi.txt file and place it into the includes folder. 3. Create the following file(s) on your computer in the spies folder: index.php 4. In the index.php file: 1. Create a standard web page with all the basics (doctype, html tag, head tag, body, etc.) 2. In the body of the page, create a web form using the post that asks for the user username and password. - be sure to use a "password" input rather than a "text" input for the password field - be sure to include a reset button - be sure to include a submit button - once submitted one of two things will happen: - The PHP file will check to see if the username is "chuck" and the password is "roast" - If they enter the correct user/password the page will say "access granted" and will display the contents of the above mentioned text file - Note, the PHP code must read the file and display its contents using file reading techniques. - Hint: you may have to explode more than once. - If they enter the wrong credentials the form will display with a message above it that says "access denied" - See sample screen shots below 5. Give the site some personality using CSS. 1. Think about design and layout 2. Be sure to do all of your styling in a CSS file that is linked to your index.php file 6. Test the site: Make sure that your test is with correct and incorrect credentials and verify the site response accordingly Make sure that you CSS works correctly 7. Upload the site: - Once the site has been tested, upload the spies directory to your server in the htdocs folder on your server. - Test the site again once it's uploaded and live 8. Notes: All of the PHP and HTML code will be in the index.php file. There will be no other files. When the form is processed, it will reload the index.php displaying different content depending on the results of the form input. Additional Content In the real world, a real programmer has to be good at researching online. The Additional Content section is meant to prepare you for that. Below is a list of a few items you to choose from that purposely aren't fully (or at all) covered in the lectures / videos. The intent is to get you used to the idea of taking what you know and branching out through a little bit of research online, just like in the real, post-school, world. :) Use the and (as a secondary source) Implement (at least) one of the features below: 1. Modify the input to accept an additional username/password combo of user: bob and password: ross 2. Once logged in, allow them to choose to show either the or this one: , whichever one they want

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

Step: 3

blur-text-image

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Name several items that increase basis.

Answered: 1 week ago