I tried making a simple form that prints the $_POST array on submission:
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<?php
if(isset($_POST['uname'])) {
print_r($_POST);
}
?>
<form action='http://example.com/current_page.php' method='post'>
Username:<br>
<input type='text' name='uname'><br>
Password:<br>
<input type='password' name='pword'><br><br>
<input type='submit' value='Submit'>
</form>
</body>
</html>
It never sends off the data. Any ideas?
I tried making a simple form that prints the $_POST array on submission:
<html> <head> <meta charset="UTF-8"> </head> <body> <?php if(isset($_POST['uname'])) { print_r($_POST); } ?> <form action='http://example.com/current_page.php' method='post'> Username:<br> <input type='text' name='uname'><br> Password:<br> <input type='password' name='pword'><br><br> <input type='submit' value='Submit'> </form> </body> </html>It never sends off the data. Any ideas?