I have following two files in www directory of wamp server. wamp server is installed on vmware.
1.) dogAbduction.html
<html>
<head>
<title>Aliens Abducted Me</title>
<style> td{ width: 250px;
height: 20px;
font-size: 20px;
}
td#ffred{ border: 0;
background-color: #cccc00;
}
td#ffblue{ border: 0;
background-color: #00cccc;
}
td#sf{ border: 1px solid #aaaaaa;
}
input#ip{ width: 250px;
height: 20px;
}
</style>
</head>
<body>
<h2>Aliens Abducted Me - Report an Abduction</h2>
<form action="abductionForm.php" method="post">
<table name="reportTable">
<tr><td id="ffred">First Name:</td><td id="sf"><input id="ip" type="text" /></td></tr>
<tr><td id="ffblue">Last Name:</td><td id="sf"><input id="ip" type="text" /></td></tr>
<tr><td id="ffred">What is your email address ?</td><td id="sf"><input id="ip" type="text" /></td></tr>
<tr><td id="ffblue">When did it happen ?</td><td id="sf"><input id="ip" type="text" /></td></tr>
<tr><td id="ffred">How long were you gone ?</td><td id="sf"><input id="ip" type="text" /></td></tr>
<tr><td id="ffblue">How many did you see ?</td><td id="sf"><input id="ip" type="text" /></td></tr>
<tr><td id="ffred">Describe them</td><td id="sf"><input id="ip" type="text" /></td></tr>
<tr><td id="ffblue">What did they do to you ?</td><td id="sf"><input id="ip" type="text" /></td></tr>
<tr><td id="ffred">Have you seen my dog, Dipu ?</td><td id="sf1">Yes<input type="radio" name="yes" />No<input type="radio" name="no"/></td></tr>
<tr><td id="ffblue">Anything else to add ?</td><td id="sf"><input id="ip" type="text" /></td></tr>
</table><br />
<input type="submit" value="Report Abduction" />
</form>
</body>
</html>
2.) phptest3.html
<html>
<head>
</head>
<body>
<!-- <form action="[localhost]; method="POST"> -->
<form action="phptest3.php" method="POST">
<label>When It Happened</label>
<input type="text" name="whenithappened" /><br />
<label>How Long</label>
<input type="text" name="howlong" /><br />
<input type="submit" value="submit">
</form>
</body>
</html>
When I send http request by typing [
localhost] in address bar, its displaying fine in browser. But when I send http request by typing [
locahost] in address bar, I am getting error message. "Page can not be found"
Why is that ?
When I double click on file name dogAbduction.html , its displaying fine in browser.
Do I need to restart wamp after creating or copying a new html file in www dir ? BGy the way, I tried restarting service , but still I am getting same error message.
Thanks
Edited 1 time(s). Last edit at 10/04/2012 01:19AM by manishrathi.