Answers for "php how to send post request to another page"

PHP
2

send value from one page to another in php

//On page 1
$_SESSION['varname'] = $var_value;

//On page 2
$var_value = $_SESSION['varname'];
Posted by: Guest on July-15-2020
0

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>
Posted by: Guest on March-26-2020

Code answers related to "php how to send post request to another page"

Browse Popular Code Answers by Language