Click to See Complete Forum and Search --> : Stay for a while in a page


raj_2006
03-10-2006, 10:32 AM
Hi All,

What i want to do is after clicking the submit button of a login form it will go to a page and will stay there for 10 seconds and then it will redirect to another url(either success or failure)

also i want to display the text as "Processing Login......" in that middle page.

My serverside scripting language is PHP.

How can i define a time in that page using php?

Please suggest any option.......Thanks.....Raj

scaiferw
03-10-2006, 11:46 AM
<?php
$refer_seconds = 10; // zero seconds means immediate redirect
$refer_url = "nextpage.htm";
?>
<html>
<head>
<title>HTML REDIRECT</title>
<meta http-equiv="REFRESH" content="<?=$refer_seconds?>; URL=<?=$refer_url?>">
</head>
<body>

<h2>Processing Login...</h2>

</body>
</html>

Hope that helps.

Rob

raj_2006
03-10-2006, 10:25 PM
Hi Rob.....Its working........Thanks for your help.....Raj

scaiferw
03-13-2006, 08:16 AM
My pleasure, just 'paying it forward' for all the help I get around here.

Rob