Please help me ASAP INSTRUCTIONS In this assignment, students are required to create PHP programs that will
Fantastic news! We've Found the answer you've been seeking!
Question:
Please help me ASAP
Transcribed Image Text:
INSTRUCTIONS In this assignment, students are required to create PHP programs that will allow an authorized user enter mentor information into a form. The collected data is then submitted to a database. Step 1 (15pts) 1) Create php program, named login.php, using skeleton code provided. This code is expect to function as follows: a) to provide a user a form that has the contents of Table 1. b) to use POST method for submitting the form. c) to use header() function to redirect authenticated users to a page, mentors.php, d) It is possible that a user is already logged in. Write code to check this, using a boolean variable $logged_in. If the user is already logged in, your code should redirect the user to a page, mentors.php. (See page 346). Skeleton code has been provided, login.php, which you are to modify. e) Create a simple php code, logout.php. When executed code should simply say "You are logged out." Table 1 Label for mentor Username Password CSIS 311 Server Site Scripting Assignment 4 Step 2 (10pts) 2) Your code will use sessions to remember if your site user is already logged in. The skeleton code msessions.php has been provided. Modify this code so that either of the following two users can log in and use the mentor system and update the Mentors table in the database using the specified credentials. a) User 1 (Username: amaka; Password: amakapassword b) User 2 (Username: peter; Password: peterpassword Component to accept Input Step 3 (25pts) 3) From the previous steps, if a user is successfully authenticated, the user will be redirected to mentors.php. Here, you will create code, mentors.php and it is expected to function as follows: a) When a user is redirected to mentors.php, include html code to say "Welcome Amaka" or "Welcome Peter" (see page 33). Use input type, text Use input type, password b) It will contain a form for data input as indicated in table 2. c) Form will use POST method. email telephone Address Highest Degree Graduation Year Mentoring Interests d) Use htmlspecialchars() function in appropriate parts of your code to reduce the risk of cross site scripting attacks. The skeleton code, mentors-skeleton-code.php, has been provided for use, here. Table 2 Label for mentor first name last name Dr. Adaeze Nwaigwe Component to accept Input Appropriate form component Appropriate form component Appropriate form component Appropriate form component Text Area Radio buttons (Bachelors, MSc., PhD.) Dropdown list (2012-2022) Computer Science Cybersecurity Computer Information Technology Computer Information Systems Save button - Will cause entries to be stored in database table Reset button - Will cause entries to be cleared INSTRUCTIONS In this assignment, students are required to create PHP programs that will allow an authorized user enter mentor information into a form. The collected data is then submitted to a database. Step 1 (15pts) 1) Create php program, named login.php, using skeleton code provided. This code is expect to function as follows: a) to provide a user a form that has the contents of Table 1. b) to use POST method for submitting the form. c) to use header() function to redirect authenticated users to a page, mentors.php, d) It is possible that a user is already logged in. Write code to check this, using a boolean variable $logged_in. If the user is already logged in, your code should redirect the user to a page, mentors.php. (See page 346). Skeleton code has been provided, login.php, which you are to modify. e) Create a simple php code, logout.php. When executed code should simply say "You are logged out." Table 1 Label for mentor Username Password CSIS 311 Server Site Scripting Assignment 4 Step 2 (10pts) 2) Your code will use sessions to remember if your site user is already logged in. The skeleton code msessions.php has been provided. Modify this code so that either of the following two users can log in and use the mentor system and update the Mentors table in the database using the specified credentials. a) User 1 (Username: amaka; Password: amakapassword b) User 2 (Username: peter; Password: peterpassword Component to accept Input Step 3 (25pts) 3) From the previous steps, if a user is successfully authenticated, the user will be redirected to mentors.php. Here, you will create code, mentors.php and it is expected to function as follows: a) When a user is redirected to mentors.php, include html code to say "Welcome Amaka" or "Welcome Peter" (see page 33). Use input type, text Use input type, password b) It will contain a form for data input as indicated in table 2. c) Form will use POST method. email telephone Address Highest Degree Graduation Year Mentoring Interests d) Use htmlspecialchars() function in appropriate parts of your code to reduce the risk of cross site scripting attacks. The skeleton code, mentors-skeleton-code.php, has been provided for use, here. Table 2 Label for mentor first name last name Dr. Adaeze Nwaigwe Component to accept Input Appropriate form component Appropriate form component Appropriate form component Appropriate form component Text Area Radio buttons (Bachelors, MSc., PhD.) Dropdown list (2012-2022) Computer Science Cybersecurity Computer Information Technology Computer Information Systems Save button - Will cause entries to be stored in database table Reset button - Will cause entries to be cleared
Expert Answer:
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date:
Students also viewed these databases questions
-
Problem 3 High-performance gas turbine engines commonly used for aircraft propulsion and power generation are subject to high operating temperatures, often in excess of 1500 C. Operation at high...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Argue whether or not you believe using a sample of students from your schools cafeteria (you recruit the next 100 people to visit the cafeteria to participate) may or may not yield biased estimates...
-
The figure shows the oxygen level P (for purity) in a lake t months after an oil spill. (a) Which of A, B, and C is the point of inflection for the graph? (b) On which side of C is d2 P/ dt2 Ë...
-
Wu and Martin is an architectural firm that is contemplating the installation of activity-based costing. The following activities are performed daily by staff architects. Classify these activities as...
-
Comment on the following statement: Competition is generally viewed by economists as a good thing, yet microlenders often disagree even those who do not aim to make profits.
-
At the end of August, the first month of operations, the following selected data were taken from the financial statements of Tucker Jacobs, an attorney: Net income for August ...........$112,500...
-
Capricorn Company reported a favorable materials price variance and an unfavorable materials quantity variance. Based on these variances, you can conclude that: the actual cost per unit of materials...
-
Background: SO MUCH CANDY DATA, SERIOUSLYCandy hierarchy data for 2017 Boing Boing Halloween candy hierarchy. This is survey data over the span of 4-years. The data is split into 4 separate files....
-
Mikell started 2021 with cash of 60,000 and equipment that cost 45,000. On October 1, 2021 Mikell paid dividends of 25,000. Mikell's operating revenues for 2021 were550,000 and operating expenses...
-
The David Thomas Company is installing a new delivery system. The system will cost $115,000 and is expected to provide an increase of $15,000 in revenues each year of its expected 10-year economic...
-
Assume there are no transactions costs. You currently pay 130 US-Dollars for 100 Euros. The continuously compounded US-Dollar interest rate is 1% and the continuously compounded Euro interest rate is...
-
For the same bond , calculate the prices of the bond assuming 1) the yield to maturity of the bond goes up 0.01% (price here called P_1) and 2) the yield to maturity of the bond goes down 0.01%...
-
Israeli Shekel Changes Value. One British Pound (GBP) traded against Israeli Shekels (ILS) 5.74 in 2013, but the exchange rate rose to 6.71 in late 2014. What is the percentage change of the ILS? Has...
-
1.Why is the Internet such a high potential breeding ground for inside information? 2.What should you do if you learn of inside information?
-
The book-- Ruiz, D. M. (1997). The four agreements: A practical guide to personal freedom (A Toltec wisdom book). Amber-Allen Publishing, Inc. Answer this question below based on the book select...
-
Cassandra Casey operates the Futuristic Antique Store. She maintains subsidiary ledgers for accounts payable and accounts receivable. She presents you with the following information for October 2019:...
-
Define the reality that certifications cost money and the better certifications can be quite expensive to attain. Depending on the certification, one can cost more than$750.00 alone, and...
-
Explain how mitigation is the control approach that attempts to reduce the impact caused by the exploitation of vulnerability through planning and preparation. Explain how mitigation begins with...
-
Which of the following positions is typically the top information security employee in the organization? a. CISO b. CEH c. Security Manager d. CSO
-
Data for the Frank B. Robinson Company are presented in PI2-5B. Further analysis reveals the following. 1. Accounts payable pertain to merchandise suppliers. 2. All operating expenses except for...
-
P12-8B Data for Bruce Willis Company is presented in P12-7B. Further analysis reveals the following. 1. Accounts payable relates to merchandise creditors. 2. All operating expenses, except...
-
The financial statements of Bruce Willis Company appear below. Additional information: 1. Plant assets were sold at a sales price of \($37,500\). 2. Additional equipment was purchased at a cost of...
Study smarter with the SolutionInn App