Andrew, You could use 'sleep' to delay the program for a few seconds, but I'm not sure that's what you want. You want one page to be displayed, then wait a few seconds, then show another page? Try a simple HTML re-direct instead:
<META HTTP-EQUIV=Refresh CONTENT="3; URL=thanks.html"> Stick that in above your <HTML> tag. All you have to do then is make a thanks.html page, or redirect it back to the script itself (perhaps include an argument msg=thanks, so you can check it and run post if it's set). Not sure if that's what you wanted... (do a search on cpan.perl.org for 'sleep', if that's more what you want) Tristan You Wrote: ---------- Hay I have a Message Board and i have 2 subs: 1 for the actuall message baord and 1 for the posting of the entries to a text file. Here is a basic example of what i have (I have not put the proper html and that in as this message would be too long): if ($in{'action'} eq "") {&default;} elsif($in{'action'} eq "post") {&post;} else { &default; } sub default { print "Content-type: text/html\n\n"; print <<DANE; Welcome to my Message Board DANE exit; } sub post { print "Content-type: text/html\n\n"; print <<DANE; Thank You For Your Post DANE &default exit; } Now what i want to do is when the script goes to the sub named post i want it too stay on that sub for about 3secs and then be directed back to the sub named default. At the moment... The users are un aware that they have posted and if the post confirmation came up it would be better :D Any help would be much appreciated Andrew _______________________________________________________ sent via the murky.net webmail hegemony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]