Question
Paycheck Calculator PHP In this assignment you need to create a form to allow the user to enter employees name, pay rate, and weekly hours
Paycheck Calculator
PHP In this assignment you need to create a form to allow the user to enter employees name, pay rate, and weekly hours work. That information will be sent to a PHP script that will process and display the employees paycheck information. Your assignment should have two pages. The first page is straight html (user_input.html) that has a form with the appropriate form elements to collect the user input. The form should then be submitted using the POST method to a PHP script (display_paycheck.php) that will process the user input. Screen shot of the user_input.html file (The first page that is straight html) The PHP script (display_paycheck.php) will receive the user input, assign it to variables, calculate and display the following pay check information:
Gross Pay (hours worked times pay rate) Federal Taxes (10.65% of Gross Pay) State Taxes (4% of Gross Pay) Social Security Taxes (3.8% of Gross Pay) Medicare (1.3% of Gross Pay) Total Taxes (Federal + State + Social Security + Medicare) Net Pay (Gross Pay Total Taxes For all the above calculations, will be assigned to variables that have descriptive names. The PHP script should calculate and display the results in the following format. Notice that the left column of the table is in bold and left justified, and the right column is right justified. There is also a link to return back to the user_input.html page. Screen shot of the results that the second page (display_paycheck.php script) produces
Please enter employee info John First Name: Last Name: Weekly Hours Worked 40 Hourly Rate S Submit Doe 10.75 ResetStep 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