Log in

View Full Version : urgent help-redirect function



sukanya.paul
08-28-2007, 02:51 AM
hi..
i need urgent help in redirection function.
i have a page(say page1.php) where i have 2 textboxes original url and redirect url.
when i click save the user is first directed to a page(say redirect.php), displaying for 10 seconds the a message before being redirected to the redirected url.
i am trying but unable to do it..
Pls help its urgent.:confused:
thanks in advance..
Suk

james438
08-29-2007, 08:36 AM
Not sure if this is what you are looking for, but this is a redirect script that I found from here (http://textsnippets.com/posts/show/123). I tried it out and it works fine for me.


<HTML>
<HEAD>
<TITLE>Redireccionado</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function redireccionar() {
setTimeout("location.href='http://www.dynamicdrive.com'", 5000);
}
</SCRIPT>
</HEAD>
<BODY onLoad="redireccionar()">
<P>Bla, bla, bla,...
</BODY>
</HTML>

I really should learn JavaScript...