Skip to content

Form POST doesn't work #6

Description

@drew-wallace

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions