Sign up to join one of the largest Law Forums on the Internet! Join Now!
Tweet Follow @LawBlogger1   

Advertisments:


Useful Links:

Bar Exam Flashcards
Discount Legal Forms
Discounted Legal Texts

Does any body know how to answer this question and if you do know how show me please?

  
Tweet

Does any body know how to answer this question and if you do know how show me please?

Postby maddox » Mon Apr 23, 2012 4:16 am

A PHP-based form can do more than just shuffle data between pages and databases. It can also manipulate the data to produce specific results.

For this exercise, you will develop an online mechanism for calculating payroll. The page will work with variables to perform mathematical computations.

Requirements:

1.Your pages must be developed using HTML and saved as PHP files.
2.Your submission page will contain a form that will obtain the following from the user:
a.The name of the fictional company.
b.The current date.
c.The data for the following employees:
NAME
HOURLY RATE
HOURS WORKED

Steve Jones NAME

$15.50 HOURLY RATE

40 HOURS WORKED

Donald Stevens NAME
$28.00 HOURLY RATE
35 HOURS WORKED

Maria Sanchez NAME
$19.00 HOURLY RATE
42 HOURS WORKED

Mark Doe NAME
$20.00 HOURLY RATE
30 HOURS WORKED

John Doe NAME
$21.25 HOURLY RATE
20 HOURS WORKED



3.There must be a button labeled as [Submit] that users can click on to submit the information. Your post page will act as a confirmation for the previous page and display the total pay for each employee.
4.The following need to be submitted at completion:
a.Screen shots of your application illustrating pages with appropriate data entered. Insert the screen shots into a Word document.
b.All site files.
maddox
 
Posts: 0
Joined: Thu Mar 31, 2011 10:39 pm
Top

Does any body know how to answer this question and if you do know how show me please?

Postby gillivray5 » Mon Apr 23, 2012 4:21 am

This is too much to ask for.
You have to do some of it.
For example, you should be able to do an html page to do the data input submission form.
Then all the php part has to do is the confirmation page where it show the rate times the hours.

<html>
<body>

<form action="myform.php" method="post">
<p>NAME: <input type="text" name="Name" />
HOURS: <input type="text" hours="Hours" />
RATE: <input type="text" rate="Rate" /></p>
<p><input type="submit" value="Save"></p>
</form>

</body>
</html>
gillivray5
 
Posts: 0
Joined: Thu Mar 31, 2011 12:44 pm
Top

Does any body know how to answer this question and if you do know how show me please?

Postby bachir93 » Mon Apr 23, 2012 4:24 am

I have included two ways to do this. The basic manner, in which I believe your prof is looking for. The second files are merely for you to see the advantages of PHP. So that you can see that there is a huge advantage to using it (Although I could have done a lot more with the examples, I didn't want to get too complicated :) )


Basic:
payroll_entry.php http://pastebin.com/enaLD5an
payroll_process.php http://pastebin.com/XJqUbwdh

Benefits of PHP:
payroll_entry.php http://pastebin.com/F3CggDEG
payroll_process.php http://pastebin.com/EKpsDFfM


Cheers,
Gitlez

If you found this answer useful, click this link-> http://730a62e4.yyv.co To say thanks (Please leave the window open for at least 10 seconds)

Contact Gitlez (form) http://4a35d504.yyv.co/
bachir93
 
Posts: 0
Joined: Thu Mar 31, 2011 9:53 am
Top


Return to Maritime Law

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests