Question: I need help writing code for this project. ALL MUST BE WRITTEN WITH PHP AND MUST USE THE TEMPLATE CODE Create a form using the
I need help writing code for this project. ALL MUST BE WRITTEN WITH PHP AND MUST USE THE TEMPLATE CODE
Create a form using the Template class that contains the correct input types to capture a username and a password, such as you might find on any website where you need to login with a username and password. On submit, the posted form should go to another page that verifies both the username and password are set and contain something. In a future assignment, we will connect the User class that you will create to this second page.
This is the PHP Template code
$page->addHeadElement("");
$page->finalizeTopSection();
//Some libraries require things to be added before the closing body tag.
//Pretty much the same thing as addHeadElement//Use addBottomElement() for that. See the method in the Template class.
$page->finalizeBottomSection();
print $page->getTopSection();
print "
Some page-specific HTML goes here
";print $page->getBottomSection();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
