Let's say I have a PHP script that needs the user to input some data during its execution. At the point the data is needed the browser could be redirected to a new page with a form where the user could enter the data. But thus is necessary to save the script state in order to continue its execution once it gets the data.
It would be preferable to mantein the execution of the script waiting for the data (in a while loop or sth similar). But, how can then the user introduce such data? With frames? One frame could execute the script, maybe outputting some information about execution and the other frame could ask for the data when needed. I think this could be done inserting JavaScript tags in the output of the script and flushing them to the browser in order to redirect the other frame to a form page. Is this valid? Do all browsers execute JavaScript commands before the page is completely charged?
Please, tell me if anyone has solved this problem in any other (maybe better) way.
Thanks, Regards, Germán
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php