LookingBeyond99
Programmer
I wrote a small upload program. If an error occurs during the opload I want the program to print an error to the screen and then redirected back to form after 5 seconds. Meaning first it says "Sorry file too large" and then is redirected back to the original form.
I use this to redirect to the page but I want it to be delayed for 5 seconds with the screen displaying the Error message before redirecting.
print "Location:
The two problems that occur is that I don't know how to delay it before it redirects and if I try to write something to the screen then it won't redirect but instead it takes the print "Location line and simply just prints that to the screen as well.
If someone knows how to delay it before it redirect I'd be very thankful.
I use this to redirect to the page but I want it to be delayed for 5 seconds with the screen displaying the Error message before redirecting.
print "Location:
The two problems that occur is that I don't know how to delay it before it redirects and if I try to write something to the screen then it won't redirect but instead it takes the print "Location line and simply just prints that to the screen as well.
If someone knows how to delay it before it redirect I'd be very thankful.