I'm stumped as to why my code isn't working. I've done POSTS a million times, but this time it just doesn't seem to work.
My form:
<form method="post" name="form" id="form" enctype="text/plain" action="../posts/">
<fieldset id="inputs" style="text-align: center;">
<input id="password" type="password" name="password" placeholder="enter password" required />Press enter to submit
</fieldset>
</form>
My PHP code for retrieval:
if(isset($_POST['password'])){
echo "success";
}
else{
echo "fail";
}
I get "fail" every time. What am I doing wrong? I just cant see it.