After successful registration my users are redirected to my homepage. How can I redirect them to a successful registration page which holds for 5 seconds informing them of successfull registration and then redirects them to the homepage ?
Printable View
After successful registration my users are redirected to my homepage. How can I redirect them to a successful registration page which holds for 5 seconds informing them of successfull registration and then redirects them to the homepage ?
try this:
Code:<HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
setTimeout("top.location.href = 'http://www.somewhere.com/'",5000);
//--></SCRIPT>
</HEAD>
<body>
<h2>Regitration sucsesfil or whatever</h2>
Please wait ....
</body>
Heh, heh... Javascript's cool...but not always supoported or enabled...here's another way to do it:(Remove the asterisks (*) from the above code...I put them in there to help netscape overcome its incompetance. :))Code:<html>
<head>
<me*ta ht*tp-equ*iv="Ref*resh" Cont*ent="5; ur*l=http://www.mralston.co.uk">
</head>
</html>
Hey, Mark...what's 4D61726B2053726565766573 mean?
[Edited by matthewralston on 11-28-2000 at 05:16 AM]
matthew
4D61726B2053726565766573 is just the ASCII for Mark Sreeves in hex.
I used to have it in binary but the spacing was all 'to pot' with a string of 1s and 0s.
how do you convert to and from hex?
Ah right... :)
I used to use:
11101001110001010
As a password...it was meant to be MRGI in binary if A=1=1, B=2=10, C=3=11...
MRGI was my initials, and the initials of a lad I used to work with in my crappy IT lessons at school...
Then I realised that I'd worked it out wrong and couldn't be bothered re-memorizing the correct version...besides, I thought 11101001110001010 had a nice ring to it and it was the kinda password that you could happily tell anyone who asked...I could say it quick enough that they'd never remember it. :)
Use the Windows Calculator in "Scientific" mode...it'll convert to and from HEX, Binary & standard numbers.
Um...I just tried Mark's lil number tho an it didn't do all of it :( Use a hex/text editor instead.
[Edited by matthewralston on 11-28-2000 at 04:55 AM]
ok...
in VB:
Code:Option Explicit
Private Sub Command1_Click()
Dim strTemp As String
Dim strOut As String
Dim i As Integer
strTemp = "Mark Sreeves"
For i = 1 To Len(strTemp)
strOut = strOut & Hex(Asc(Mid(strTemp, i)))
Next
Debug.Print strOut
End Sub
I always use Netscape to view VB-World because it load faster than IE5 anyway, it does strange things though.
When I refreshed this page it invoked Mathew's redirect code and I got transfered to his home page!!
Yay! Go Mozilla!!! :) He he he. :D
Have sabotaged the code that got ya. :)
Upgrade to Netscape 6 Mark...it's bound have less of the bugs in 4.02 that you're using and have a few different ones instead. :)
[Edited by matthewralston on 11-28-2000 at 05:37 AM]