I writing php from handling using this page as an example http://www.w3schools.com/php/php_forms.asp
To check if my form data is being passed to my php script, I am using echo statements. I have had no results, despite trying to print both my password and name. I have spent hours inspecting my code, and trying code from different examples, but nothing works.
I have read the stack overflow post form variables not passing to php, but I have confirmed that my php is working correctly, as I am able to print arrays from my database, as well as html paragraphs. Now I am prone to making really stupid mistakes, so it could be something like that, but I have been as thorough as possible.
Here is what I have done. (I have removed everything that is not relavent)
<form action="login.php" method="post">
<div id="name">
editors name: <input type="text" name="name">
</div>
<div id="pswd">
password: <input type="password" name="pwd">
</div>
<div id="submit">
<input type="submit">
</div>
</form>
login.php
<html>
<body>
<?php
echo $_POST["pwd"];
?>
</html>
</body>
Thank you very much to anyone who has any ideas. I really hope I did not forget something really stupid.