Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #post #variables #page #submit #button #php
ADD COMMENT
Topic
Name
2+2 =