Lab 1. PHP and form data
Lab overview. In this lab, you will create an HTML form that takes a user id and password from the user, passes those values via the HTTP POST operation to the web server, and then uses a PHP script to display those values, (see screen images below)
Lab 2 PHP and session objects
Lab Overview. In this lab, you are going to modify your code from lab 1 to store the username and password in a session object. When the user clicks on the submit button, your program should go to a Session Page to retrieve the information from the session object and display the username and password, as well as the session id value (hint: to display the session id, use the PHP function
session_id()
Lab 3 PHP and Software Testing
Lab Overview. In this lab, you are going to write a program that sums a range of integers, between a low value and a high value (e.g. if you input the low value 5 and the high value 10, the program would add up the numbers 5, 6, 7, 8, 9 ,10 to give a total of 45. You are also to prepare a software test value showing the expected values and the actual values for the three tests below
Test 1:
Attempt to sum the values between 3 and 11 (should produce 63)
Test 2: Attempt to sum the values etween 6 and 4 (should generate an error message, as the second number is smaller than the first number)
Test 3. Attempt to sum the values between ‘a’ and ‘c’ (should generate an error message, as the values input are non-numeric
____________________________________________________________________________
Task 1. Write a PHP program that takes a low value and a high value, and sums the integers as described. Make sure your program as the required validation to reject any invalid input from the user as described above. Your program should look like the following