Here's a common task. I have a form in step1.php
<form action="<?= $_SERVER['PHP_SELF']; ?>" method="post">
After input, step1.php checks the data fields - if empty, the user is prompted to put data into the empty fields.
Then, if the fields are ok, I want to go to step2.php automatically and post all variables also.
I've acheived this by cheating and adding a form button with hidden fields :
<FORM METHOD="POST" ACTION="mydomain/step2.php">
But this is a bit naff as the user needs to click once to submit data, then again to goto step2.php. Can somebody help me with this. I've dabbled with cURL which I've sort of got working, but not very well. Thanks