Question
I need help writing code for this project. THE PROJECT MUST USE THE TEMPLATE PHP FILE! ALL MUST BE WRITTEN WITH PHP Create a form
I need help writing code for this project. THE PROJECT MUST USE THE TEMPLATE PHP FILE! ALL MUST BE WRITTEN WITH PHP
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 = new Template("My Page");
$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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started