...

How do you pause until a certain action occurs? How to use check boxes?

conozco345
07-17-2002, 07:36 AM
Okie Dokie, firepages has a great, great script that I am using, but I need to configure it and I am terrible with PHP. This is the script by the way if it will help answer my questions...

http://www.firepages.org/public/zipfile.php.txt


I added in
system( "del \"$zipFile\"" );
but it deletes it before you can click the URL to take you to the download site. How do I pause it from occuring until they click the link?

Also, how do I create check boxes in PHP?

mordred
07-17-2002, 09:50 AM
You have to realize that PHP runs on the server and has no clue whatsover the user does on his client side (usually the browser). In other words, the script runs from the top to the bottom and each line is processed as written, and then the output is sent to the browser.
So if you use this system() function directly after you created the zipfile, you delete it. The output is a broken link.

Solution:
You don't need to "pause" PHP. You simply serve a link to a separate file that fetches the zip and serves it with the appropriate headers to the client and then deletes it.

I don't quite get your question about checkboxes. Do you mean how to print them out? That's usually done like


echo '<input type="checkbox" name="myCheckBox" value="myValue">';



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum