/    Sign up×
Community /Pin to ProfileBookmark

Stay for a while in a page

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

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@scaiferwMar 10.2006 — [code=php]
<?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>
[/code]

Hope that helps.

Rob
Copy linkTweet thisAlerts:
@raj_2006authorMar 11.2006 — Hi Rob.....Its working........Thanks for your help.....Raj
Copy linkTweet thisAlerts:
@scaiferwMar 13.2006 — My pleasure, just 'paying it forward' for all the help I get around here.

Rob
×

Success!

Help @raj_2006 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...