I am stuck. I have a beginning php class and have run into a wall. Any help will be appreciated.
here is the from that is submitted for paycheck calculation:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<h2>Paycheck Calculation</h2>
<form id="form1" name="form1" method="get" action="paycheck.php">
<table width="40%" border="0" cellspacing="1" cellpadding="1">
<tr>
<th width="30%" scope="row">Hours Worked:</th>
<td width="20%"><label>
<input type="text" name="hoursWorked" id="hours" />
</label></td>
</tr>
<tr>
<th scope="row">Wages:</th>
<td><label>
<input type="text" name="wagesRate" id="wages" />
</label></td>
</tr>
<tr>
<th scope="row"> </th>
<td><label>
<input type="submit" name="pay" id="pay" value="Submit" />
</label></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
here is the PHP code that i have so far but I am stuck.
<?PHP
$hoursWorked = $_REQUEST["hoursWorked"]
$wages = $_REQUEST["wagesRate"]
$pay = $_REQUEST["pay"]
$payCheck = $_REQUEST["payCheck"]
$x = $hoursWorked;
$y = $wages;
$z = $paycheck;
$z = ($x *$y) + (($x - 40) * $y * 1.5)
echo "Your Paycheck is: $payCheck";
}
?>
thanks in advance.