php input values code example
Example 1: php post variables to another page with submit button php
<html>
<form id="form" action="webAddressYouWantToRedirectTo.php" method="POST">
<input type="hidden" name="expectedPOSTVarNameOnTheOtherPage" value="<?php echo $varYouMadePreviouslyInProcessing ?>">
</form>
<script>
document.getElementById("form").submit();
</script>
</html>
Example 2: how to get input value in php variable
$info = array('Doina', 'brown', 'long');
list($she, $color, $hear) = $info;
echo "$she has $color eyes color and $hear black hair.\n";