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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -