Welcome to WebmasterWorld Guest from 54.159.19.75

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP function

     
5:38 pm on Jan 24, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 25, 2000
posts:1786
votes: 0


Is there a function to delay output from a form. In other words I want to make it look like it's a strenuous process and not spit the answer right back at the user.
5:52 pm on Jan 24, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 6, 2001
posts:99
votes: 0


Take a look at the function sleep()

void sleep(int seconds)
The sleep function delays program execution for the given number of seconds.

or

void usleep(int micro_seconds)
The usleep function delays program execution for the given number of micro_seconds.

noSanity

6:12 pm on Jan 24, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 25, 2000
posts:1786
votes: 0


Great.
Now if we took it one step further and added the little pop up window that says..."We're processing your request.." like you see at some of the reservation booking sites. I think this is js?
6:15 pm on Jan 24, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 6, 2001
posts:99
votes: 0


Now for that... that is a normal thing i do... first i display my wait page, which has a hidden form, and a javascript that says "onLoad='document.form.submit()'"

noSanity