Sakib on PHP

The Laon Application Form Script

Posted in EasyPHP by Sakib on PHP on May 2nd, 2008

Step 1:


<html>
<head><title></title></head>
<body>
<b>Namllu Credit Bank Loan Application Form</b>
<form method="POST" action="loan.php">
First Name:
<input name="FirstName" type="text"/>
Last Name:
<input name="LastName" type="text"/>
Age:
<input name="Age" type="text" size="3"/>
<br />
<br />
Address:
<textarea name="Address" rows="4" cols="40">
</textarea>
<br />
<br />
What is your current salary?
<select name="Salary">
<option value=0>Under $10000</option>
<option value=10000>$10,000 to $25,000</option>
<option value=25000>$25,000 to $50,000</option>
<option value=50000>Over $50,000</option>
</select>
<br />
<br />
How much do you want to borrow?<br /><br />
<input name="Loan" type="radio" value="1000"/>Our $1,000 package at 8.0% interest
<br />
<input name="Loan" type="radio" value="5000"/>Our $5,000 package at 11.5% interest
<br />
<input name="Loan" type="radio" value=" 10000"/>Our $10,000 package at 15.0% interest
<br />
<br />
<input type="submit" value="Click here to Submit application"/>
<input type="reset" value="Reset application form"/>
</form>
</body>
</html>

Step 2:


<html>
<head><title></title></head>
<body>
<b>Namllu Credit Bank Loan Application Form</b>
<br />
<br />

< ?php
$SalaryAllowance = $_POST['Salary']/5;
$AgeAllowance = ($_POST['Age']/10 - ($_POST['Age']%10)/10)-1;
$LoanAllowance = $SalaryAllowance * $AgeAllowance;
echo "Loan wanted:$_POST[Loan]<br>";
echo "Loan amount we will allow:$LoanAllowance<br /><br />";
if ($_POST['Loan'] < - $LoanAllowance) echo "Yes, $_POST[FirstName]
$_POST[LastName], we are delighted to accept your application";
if ($_POST['Loan'] > $LoanAllowance) echo "Sorry, $_POST[FirstName]
$_POST[LastName], we cannot accept your application at this time";
?>
</body>
</html>
Tagged with: , ,

One Response to 'The Laon Application Form Script'

Subscribe to comments with RSS or TrackBack to 'The Laon Application Form Script'.

  1. Loan holder said, on June 3rd, 2008 at 11:42 am

    Nice blog.Keep up with the good work!

Leave a Reply