I want to send some data to a page via $_POST with redirect. Like a HTML form, something like this:
<form action="http://www.thesite.com/script/stage2.php" method="post" name="theform">
<input type="hidden" name="email" value="<?php echo $email; ?>" />
<!-- etc -->
</form>
<script type="text/javascript">document.theform.submit();</script>
The thing is that, I don't want to use JavaScript and write HTML for this. I think this is possible via CURL, but I could not put it together. How can I do that? Thanks.
late edit: I'm using session, and seems to work so far.