Requirement
Add functionality to Assignment 7 so that the response to submitting the form says, “Thank-you, _____, for submitting the form. Your password is _____.” Where the two blanks are filled in with the values the user typed into the text and password inputs of the form, respectively.
The Assignment
-
Prepare the form.
If you did not do so in Assignment 7, you need to add a name attribute to the two input elements in the form. The value of the text input should be “user” or “username” or “email”— you can pick any name you like, so long as it is plausably meaningful. Likewise, use the value “passwd” or something similar for the password input.
-
Add PHP code to process_form.php to implement the assignment.
You do not have to do any error checking the way I did in class on April 29; just display the required text as the content of the h1 element of the page.
You have to decide how you want to implement the requirement: string interpolation or string concatenation. Be sure you know how to use both techniques, because they will be covered on the final exam.
Look carefully at the URL to see how the form data is being passed to process_form.php. That’s another final exam topic.
Submit
When you are sure your program does everything correctly, and that there are no errors are warnings from the XHTML and CSS validators, nor from Firebug, just send me an email message, and I’ll check it out in the usual way.
Send your email message to me at: vickeryatbabbage.cs.qc.cuny.edu by midnight of the due date.
The Subject line of your email message must be: “CS-90.3 Assignment 8.”
Don’t forget to put your name in your email message!