PHP form not sending data to $_POST -


<!doctype html> <html>     <body>         <form action="test.php" method="post">             <input name="test" type="text">             <input type="password" name="data">             <input type="submit">         </form>     </body> </html>   <?php     if($_server['request_method'] == 'post'){         $name = $_post['test'];         $pass = $_post['data'];     } ?> 

i trying make simple form in php users use login. when using code, nothing ever gets put inside $_post. debugging using phpstorm , can tell request method post, no data getting passed through. doing wrong?

try adding slash @ begening of action parameter of form tag.

<form action="/test.php" method="post">


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -