404 Not Found :The requested URL /<output of the query> was not found on this server.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<img src="C:\wamp\www\header.gif" width="100%" height="10%">
<br>
<br>
<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>
</head>
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'vartika';
$db = mysql_connect('localhost', 'root', 'vartika')
or die ("Unable to connect: " . mysql_error());
mysql_query("show databases"
;
mysql_select_db ("greendb"
or die ("Unable to select database: " . mysql_error());
$query = "SELECT * FROM greendb_attributes";
$result = mysql_query ($query, $db)
or die ("Query failed: " . mysql_error() . " Actual query: " . $query);
?>
<FORM
ACTION="../cgi-bin/redirect.pl"
METHOD=POST onSubmit="return dropdown(this.comp)">
Choose a Company:
<SELECT NAME="comp">
<OPTION VALUE="[
www.intel.com]; >Intel
<OPTION VALUE="[
www.apple.com]; >Apple
<OPTION VALUE="[
content.dell.com] " >Dell
<OPTION VALUE="[
h20338.www2.hp.com]; >HP
</SELECT>
<INPUT TYPE=SUBMIT VALUE="Go">
</FORM>
<FORM
ACTION="../cgi-bin/redirect.pl"
METHOD=POST onSubmit="return dropdown(this.param)">
Search by Parameters:
<select name="param">
<option value= "
<?php while($row = mysql_fetch_array($result))
{
echo $row['greendb_name'] . " " . $row['greendb_env impact score'];} ?>">Green Policies And Performance Score</option>
<option>Env Impact score</option>
<option>Reputation survey score</option>
</select>
<INPUT TYPE=SUBMIT VALUE="Go">
</FORM>
<br>
</html>
Above is the program in which I am getting the 404 Not Found Error.
The error is:
404 Not Found :The requested URL /<output of the query> was not found on this server.
I am not able to trace out the error.
Thank you.