Reply
Old 08-04-2004, 03:48 PM Please Wait Dialog
WSU
Junior Talker

Posts: 1
Trades: 0
Basically what I am trying to do is display a "please wait" while a process that can take from 3 - 300 seconds takes place. I can't quite figure out the logic to make it happen.

Step 1 - The Form:
PHP Code:
<form name="StartForm" method="post" action="check.php">
Please enter your number (no dashes):<input type="text" size=10 maxlength=10 name="tn">
<
input type="submit" name="submit" value="Submit">
</
form
Step 2 - Please wait:
PHP Code:
include ("func.php");   // LotsOfTime is in here

// I need this to be ran only ONCE in the background
$result LotsOfTime();   // this can take from 3 to 300 seconds

// the flaw is here because it won't go on until it has taken place.

print "Please wait!";

while (
$result == 0){
// status bar.....
print " . ";
}

// after $result has a value I then want to refresh to a new page,  I can pass it in a cookie easy enough 
Step 3 - Results page:
PHP Code:
// I can grab this out of the session cookie simply
print $result
I need this to work well in IE and Mozilla. I have a current implementation, but because the page is in tables IE won't render it until it has received the complete contents of the page.

I'm just kinda lost, not sure how the best way to make this happen is.

Thanks
WSU
WSU is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Reply     « Reply to Please Wait Dialog
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10336 seconds with 13 queries