
Creating a simple form :
Form.html <form action="process.php" method="post"> Username:<input type="text" name="username" value=""> Password:<input type="password" name="password" value=""> <input type="submit" name="submit" value="Submit"> </form>Processing the data entered in the form by using a simple enough PHP script :
Process.php <?php //Fetching data using Post method $username=$_POST['username']; $password=$_POST['password']; echo "{$username} : {$password}"; //Fetching data using Get method $username=$_GET['username']; $password=$_GET['password']; echo "{$username} : {$password}"; ?>
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.