473,378 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

What is the problem in the following code?

<?php
if(isset($_POST['submit']))
{
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$age=$_POST['age'];
$address=$_POST['address'];
$salary=$_POST['salary'];
$borrow=$_POST['borrow'];
echo "form submitted successfully";
}
else
{
echo "form not submitted";
}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Loan Application Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<b>ICICI Credit Bank Loan Application Form</b>
<br/>
<br/>
<form action="../My%20Documents/loan.php" method="post">
First Name<input name="fname" type="text" size="20" maxlength="10">
Last Name<input name="lname" type="text" size="20" maxlength="10">
Age<input name="age" type="text" size="5" maxlength="5">
<br/>
<br/>
Address<textarea name="address" cols="30" rows="5"></textarea>
<br/>
<br/>
What is your current salary?
<select name="salary">
<option value="0" selected>Under $10,000</option>
<option value="10000">$10,000-$25,000</option>
<option value="25000">$25,000-$50,000</option>
<option value="50000">Over $50,000</option>
</select>
<br/>
<br/>
How much you want to borrow?
<br/>
<br/>
<input name="borrow" type="radio" value="1000">Our $1,000 package at 8.0% interst
<br/>
<input name="borrow" type="radio" value="5000">Our $5,000 package at 11.5% interst
<br/>
<input name="borrow" type="radio" value="10,000">Our $10,000 package at 15.0% interst
<br/>
<br/>
<input name="submit" type="submit" value="Click here to Submit application">
<input name="reset" type="reset" value="Reset application form">
</form>
</body>
</html>
Jan 15 '08 #1
2 1167
Markus
6,050 Expert 4TB
...

there's no way in hell people can help you with that!

Explain what the problem is and USE CODE TAGS!
Jan 15 '08 #2
dlite922
1,584 Expert 1GB

<form action="../My%20Documents/loan.php" method="post">
Do you even have a server setup? and its pointing to "My Documents"?

you didn't post any message, but i think you don't have webserver, PHP setup on your computer.

to check this. post the URL you type in your browser to see this page.

it must start with http:// at least

usually http://localhost/foldername/filename.php

Post a better question next time.
Jan 15 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

56
by: Xah Lee | last post by:
What are OOP's Jargons and Complexities Xah Lee, 20050128 The Rise of Classes, Methods, Objects In computer languages, often a function definition looks like this: subroutine f (x1, x2, ...)...
10
by: Greener | last post by:
Hi, I need help badly. Can you do client-side programming instead of server-side to capture the Browser type info? If this is the case, what's wrong with the following? <script...
26
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
4
by: grizggg | last post by:
I have searched and not found an answer to this question. I ran upon the following statement in a *.cpp file in a member function: static const char * const pacz_HTMLContentTypeHeader =...
3
by: vainstah | last post by:
Hello Guys and Galls, To start off, I have reached the solution I was looking for, but I would like comments and feedback on the solution I have reached and tips/tricks on making it more elegant....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.