All I have been trying to do for days is figure out how to get this line to call a second PHP program, and have the first PHP program wait until it has finished before proceeding on:
------------------------------------
(first PHP program)
echo"<script>location.href='paymentconfirm." .$phpEx."?secure=" . $post_id . "';</script>";
------------------------------------
The problem is, after running this line, PHP keeps going. The program is a PHP posting routine, just like the one you use here when you post a question, but when you click "POST" it takes you to a pay screen where you should pay to post a question.
The problem is now, once you click POST, stupid PHP continues ahead in program 1, posting the question whether or not you have paid.......impossible.
Going insane............thanks for any help or advice,
JEFFERY1493