An HTML form that calls itself. Why isnt it working?
Posted: Thu Oct 14, 2010 11:17 pm
Ok I am trying to get an HTML form to call itself as part of a larger project. The interesting thing is why would " method='POST'> by shown in the browser when I clearly have it within the " > " ending. I bolded the part below that is showing up in the browser when it shouldn't be. Any ideas why?
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>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="drewman" />
<title>Numgen game</title>
</head>
<body>
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>[b]" method='POST'>[/b]
<p>Type your guess here:</p>
<input type="text" name="guess" />
<input type="submit" value="submit your guess" />
</form>
</body>
</html>