I'm horrible with php and not sure what to do, this is what i have so far for a program to calculate weekly pay after income tax:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<title>Income Tax Form</title>
<style type="text/css">
<!--
.style2 {font-size: 24px}
-->
</style>
</head>
<body>
<form action='formproc.php' method='POST' id='phpform'>
<p align="center" class="style2">Shoeworkz - Pay Calculator</p>
<p>Employee's Name:
<input type="text" id="name" name="name" />
</p>
<p><br />
Hours Worked:
<input name="hrs" type="text" id="hrs" value="0" maxlength="8" />
</p>
<p><br />
Pay Rate/Hr ($):
<input name="rate" type="text" id="rate" value="0" maxlength="8" />
</p>
<p><br />
<input type="submit" value="Calculate Net Weekly Pay" />
</p>
</form>
</body>
</html>
<?php
$name=$_POST['name'];
$hrs=$_POST['hrs'];
$rate=$_POST['rate'];
$income = $hrs*$rate;
if $income<6000 = tax0
if $income>35000<80000 = tax1
if $income>80000<180000 = tax2
if $income>180000<180000 = tax3
if $income>80000<180000 = tax4
$tax0 = $income
$tax1 = ($income-6000)*0.15
$tax2 = ($income-39200)*0.3
$tax3 = ($income-98000)*0.38
$tax4 = ($income-238000)*0.45
?>
<html>
<head>
<title>Form Processing with PHP</title>
</head>
<body>
<?php
echo $name=$_POST['name'];
</body>
</html>
Second part isn't anywhere finished.