PDA

Click to See Complete Forum and Search --> : Redirect Page


nmretd
Nov 27th, 2000, 05:25 AM
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 ?

Mark Sreeves
Nov 27th, 2000, 05:50 AM
try this:

<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>

Nov 27th, 2000, 11:09 AM
Heh, heh... Javascript's cool...but not always supoported or enabled...here's another way to do it:<html>
<head>
<me*ta ht*tp-equ*iv="Ref*resh" Cont*ent="5; ur*l=http://www.mralston.co.uk">
</head>
</html>

(Remove the asterisks (*) from the above code...I put them in there to help netscape overcome its incompetance. :))

Hey, Mark...what's 4D61726B2053726565766573 mean?

[Edited by matthewralston on 11-28-2000 at 05:16 AM]

Mark Sreeves
Nov 28th, 2000, 02:07 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.

da_silvy
Nov 28th, 2000, 03:49 AM
how do you convert to and from hex?

Nov 28th, 2000, 03:49 AM
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. :)

Nov 28th, 2000, 03:53 AM
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]

da_silvy
Nov 28th, 2000, 03:59 AM
ok...

Mark Sreeves
Nov 28th, 2000, 04:05 AM
in VB:


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!!

Nov 28th, 2000, 04:14 AM
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]