Question
< < Please use PHP >> Instructions PART 1 Create an HTML page named stringer.html that displays a form with two textboxes as shown. Invite
<< Please use PHP >>
Instructions
PART 1
Create an HTML page named stringer.html that displays a form with two textboxes as shown. Invite the user to enter his/her name and a favorite saying or quotation. The form posts its data to stringer.php.
The PHP file called stringer.php that manipulates the saying and generates the output shown below:
- Display the character count and word count.
- Change the case of characters as shown in the second section.
- Replace all vowels with stars (regular expression required).
- Split the saying into an array and display each word on a line.
Output of stringer.php
PART 2
Create a PHP page for handling a simple interest loan. The current date and time should be displayed at the top of the page. Use a form with four inputs for the loan:
- the start date
- the due date
- the annual interest rate as a %
- the principal amount borrowed
Be sure to enter the day, month and year for both dates. When the form is submitted, the application should display:
- the loan start date
- the loan due date
- the annual rate of simple interest as a %
- the principal amount of the loan in currency format
- the simple interest due in currency format
- the amount required to repay the loan (principal + interest) in currency format
NOTE: both dates should be displayed in the format month name, day of month, and year as in June 21, 2018 or November 7, 2017. The formula for determining the simple interest due on a loan is I = Prt, where I = Simple Interest, P = Principal, r = Annual Interest Rate (as a decimal), and t = time in years. You can learn all about simple interest on the Internet if necessary.
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