Skip to content

Form POST doesn't work #6

@drew-wallace

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?

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