This is the data from form.php
Code: Select all
<!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” xml:lang=”en” lang=”en”>
<head>
<title> </title>
<style type="text/css">
h1 h2 h3 h4 h5 h6 body p form legend fieldset input select option textarea{
padding:0px;
margin:0px;
}
.radio1 {
margin:0px 0px 0px 0px;
}
fieldset{
width:250px;
}
</style>
</head>
<body>
<form action=”submit.php” method=”post”>
<fieldset>
<legend> Adil</legend>
<p>Name:
<input type="text" class="radio1" value="username" name="name" size="20" maxlength="40" />
</p>
<p>Email:
<input type="text" value="Email id" name="Email" size="20" maxlength="40"/>
</p>
<p>Gender:
Male:<input type="radio" name="radio" value="M" />
Female:<input type="radio" name="radio" value="F" />
</p>
<p>Age:
<select name="age">
<option value="0-29">Under 30</option>
<option value="30-50">Under 50</option>
<option value="50+">Above 50</option>
</select>
</p>
<p class="pera">Comments:<br/>
<textarea row="7" column="30"> </textarea>
</p>
<input type="submit" value="submit" />
</fieldset>
</form>
</body>
</html> Code: Select all
<!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” xml:lang=”en” lang=”en”>
<head>
<title> </title>
<style type="text/css">
</style>
</head>
<body>
<?php
//variables
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$comments = $_REQUEST['comments'];
/* Not used:
$_REQUEST[‘age’]
$_REQUEST[‘gender’]
$_REQUEST[‘submit’]
*/
echo "<p>Thank you $name for the following comments: </p><br/>
<tt>$comments</tt></p>
<p>We will reply you at <i>$email</i>.<p/>\n
";
?>
</body>
</html>[text]Not Found
The requested URL /php/â€Âsubmit.php†was not found on this server.
[/text]
and the output url is
[text]http://localhost/php/%C3%A2%E2%82%AC%C2 ... &age=30-50[/text]
can you tell me what just wrong. because i cant figure it out.

