Ok. I took out the doc reference at the top and I found actual problems.
I receive this in my error logs:
[client 127.0.0.1] PHP Notice: Undefined variable: _post in C:\Documents and Settings\Administrator\My Documents\My Work\PHP\Beg_PHP4\CH3\loan.php on line 8, referer:
http://localhost/PHP/Beg_PHP4/CH3/loan.htm
[client 127.0.0.1] PHP Notice: Undefined variable: _post in C:\Documents and Settings\Administrator\My Documents\My Work\PHP\Beg_PHP4\CH3\loan.php on line 9, referer:
http://localhost/PHP/Beg_PHP4/CH3/loan.htm
[client 127.0.0.1] PHP Notice: Undefined variable: _post in C:\Documents and Settings\Administrator\My Documents\My Work\PHP\Beg_PHP4\CH3\loan.php on line 10, referer:
http://localhost/PHP/Beg_PHP4/CH3/loan.htm
[client 127.0.0.1] PHP Notice: Undefined variable: _post in C:\Documents and Settings\Administrator\My Documents\My Work\PHP\Beg_PHP4\CH3\loan.php on line 11, referer:
http://localhost/PHP/Beg_PHP4/CH3/loan.htm
[client 127.0.0.1] PHP Notice: Undefined variable: _post in C:\Documents and Settings\Administrator\My Documents\My Work\PHP\Beg_PHP4\CH3\loan.php on line 12, referer:
http://localhost/PHP/Beg_PHP4/CH3/loan.htm
Errors on line 8 through 12.
Here is the code for that page:
<head><title> Smart Loan Application</title></head>
<body>
<h1>Smart Credit Bank Loan Application Form</h1>
<?php
$firstname = $_post['firstname'];
$lastname = $_post['lastname'];
$salary = $_post['salary'];
$age = $_post['age'];
$loan = $_post['loan'];
$SalaryAllowance = $salary / 5;
$AgeAllowance = ($age / 10 - ($age % 10) / 10 ) -1;
$LoanAllowance = $SalaryAllowance + $AgeAllowance;
echo 'Loan desired: $loan <br />';
echo 'Loan amount we will allow: $LoanAllownace <br /><br />';
if ($loan <= $LoanAllowance) echo 'Yes, $firstname $lastname, we are delighted to accept your application';
if ($loan > $LoanAllowance) echo 'We\'re sorry, $firstname $lastname, we cannot accept your application at this time.';
?>
<p>
Created on ... October 27, 2003</p>
</body>
</html>
The errors in question are the $firstname = $_post['firstname'];
Is there something wrong with that?