Form POST data not passing through to PHP -
this question has answer here:
i'm stumped why code isn't working. i've done posts million times, time doesn't seem 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 submit </fieldset> </form>
my php code retrieval:
if(isset($_post['password'])){ echo "success"; } else{ echo "fail"; }
i "fail" every time. doing wrong? cant see it.
remove enctype="text/plain" form submit.
<form method="post" name="form" id="form" action="../posts/"> <fieldset id="inputs" style="text-align: center;"> <input id="password" type="password" name="password" placeholder="enter password" required />press enter submit </fieldset> </form>
Comments
Post a Comment