jeudi 1 septembre 2016

Text Box data not showing in PHP

In PHP,, text is not showing when i type in textbox and click on submit,,, sorry for such a dumb question

<body>
<form action="process.php" method="post">
    Username: <input type="text" name="user" value=""/>
    <br>
    Password: <input type="text" name="pass" value=""/>
    <br>
    <input type="submit" name="submit" value="Submit"/>

</form>

</body>

Process.php is in external file

<?php
if(isset($_POST['submit'])){
    $username=$_POST['user'];
    $password=$_POST['pass'];

    echo $password;
    echo $username;
}

//echo $username." ".$password;
?>




Aucun commentaire:

Enregistrer un commentaire