suppose I try to fetch previous $ variable (register_detail.php) to $_POST (register_submit.php)
example:
register_detail.php
<form action="register_submit.php" method='POST'>
<table>
<tr><td>Name:</td> <td><?php print ($name); ?></td></tr>
<tr><td>I/C:</td> <td><?php print ($ic); ?></td></tr>
<tr><td>e-mail:</td> <td><?php print ($email); ?></td></tr>
<tr><td>Address:</td> <td><?php print ($address); ?></td></tr>
<tr><td>Date of Birth:</td> <td><?php print ($dob); ?></td></tr>
<tr><td>Contact:</td> <td><?php print ($contact); ?></td></tr>
</table>
<?php $password; ?> -- this was not meant to be displayed --
<input type='submit' name='submit' value='Confirm'><input type='button' value='Cancel' onclick='history.go(-1);return false;'/>
</form>
to new php (register_submit.php)
if (isset($_POST['name']) && isset($_POST['ic']) && isset($_POST['email']) && isset($_POST['address']) && isset($_POST['dob']) && isset($_POST['contact']) && isset($_POST['password']))
$name = $_POST['name'];
$ic = $_POST['ic'];
$email = $_POST['email'];
$address = $_POST['address'];
$dob = $_POST['dob'];
$contact = $_POST['contact'];
$password = $_POST['password'];
as we can see, can I fetch $ variable to $_POST?