<form>
Tag<form id="myForm" name="MyForm" action="process_data.php" method="POST">
<input type="text" id="user_name" name="user_name" value="harris" /> <input type="password" id="user_password" name="user_password" /> <input type="hidden" id="action" name="action" value="login" />
process_data.php?user_name=rharris&password=s3cr3t72&action=login
process_data.php
<?php $user_name = filter_input(INPUT_POST, 'user_name'); $user_password = filter_input(INPUT_POST, 'user_password'); $action = filter_input(INPUT_POST, 'action'); ?>
method="POST"
attribute, so that the
user data is not displayed in the address bar of the browser.