HTML/PHP; can you see an error?

  • Thread starter Thread starter vill k
  • Start date Start date
V

vill k

Guest
I have worked out that these lines; if ($_POST[location] == "");
header ("Location: redirect_form.html"); wont be executed because of an error in this script. Can anyone see the error???


<html>
<head>
<title>Redirection Form</title>
</head>
<body>
<FORM METHOD="post" ACTION="do_redirect.php">
send me to:
<SELECT name="location">
<OPTION value=" ">-- Select One --</OPTION>
<OPTION value="http://www.i2ii.com/">i2i Interactive</OPTION>
<OPTION value="http://www.thickbook.com/">Thickbook.com</OPTION>
<OPTION value="http://www.php.net/">PHP home</OPTION>
<OPTION value="http://www.zend.com/">Zend Technologies</OPTION>
</SELECT>
<P><INPUT TYPE="submit" NAME="submit" VALUE="Go!"></p>
</form>
</body>
</html>

p.s i get this error... Use of undefined constant location - assumed 'location

and the header can not be modified error
 
Back
Top