I'm a novice with PHP but really enjoying it so far.
I want to execute some PHP code and then send the user to another site with POST data. At the moment, the user has to click on the Submit button in a form to send POST data. Is there anyway this can be done automatically with PHP?
This is what I have currently:
What I would like to do:
Thanks for the help.
I want to execute some PHP code and then send the user to another site with POST data. At the moment, the user has to click on the Submit button in a form to send POST data. Is there anyway this can be done automatically with PHP?
This is what I have currently:
PHP:
<?php
(execute php code)
?>
<form action="anotherScript.php" method="post">
<input type=hidden name="someName" value="someValue">
<input name="submit" type="submit" value="Click here to continue" />
</form>
What I would like to do:
PHP:
<?php
(execute php code)
(send user automatically to anotherScript.php with POST data)
?>
Thanks for the help.