Hi,
I would appreciate help with the following. I am trying to implement a cancel button on in a php application. In this application a person can login to his/her account and access a database.
The PHP file that I am working on contains some input boxes and some pull down lists. According to the user's input and some choices the mypictures.php
will
1) make select statements from the database (I am using MySQL)
2) in a loop has a grep statement that looks for pictures stored in the database
3) call an excutable file called generatepicture and generatepicture also calls another excutable gatherparts
A cancel button will be useful when a user makes a big request and then decides to cancel.
How would I go about this what kind of functions can I use?
I am not sure if there will be anywhere for the user to click when the mypictures.php is running.
I think the header part of the mypictures.php will be functional since it is echoed or rendered before the more complicated (picture rendering) or body html part of the php file called. Right now I can look at the contents of the drop down list in the header even though all of the pictures have not been rendered yet.
Is it possible to put a cancel button in the header?
If not then perhaps I could use a pop up window with javascript
that would pop up before the page starts to render.
If the person clicked yes then they will be redirected to the original search page.
Before redirecting I would like to stop the three processes that I mentionned ie. select statements, grep statement and most importantly the executables that get called in the background.
I have had problems with the server getting tied up because some of the executables kept on running.
How do I stop these processes?
Thanks!