|
-
Nov 18th, 2002, 07:55 PM
#1
Thread Starter
Hyperactive Member
Redirecting
How do I get the page to automaticly refresh to a url based on the subject
i.e.
if
$POST["subject"] = "Join the Mailing List"
goto
reciept.php?what=Thank%20you%20for%20joining
after 3 seconds
if not then goto
reciept.php?what=Sorry%20to%20see%20you%20leave
after 3 seconds
it is relivent to my last post
[VBCODE]
Option Explicit
Dim XXX As Porn
Dim Wife As Nag
Private Sub *****_Resize()
On Error Resume Next
Get Viagra
End Sub
[/VBCODE]
-
Nov 18th, 2002, 10:24 PM
#2
Fanatic Member
<?php header( Location: http://www.moo.com ); ?>
-
Nov 19th, 2002, 06:57 AM
#3
Frenzied Member
I could be wrong, but doesn't the header have to be encased in quote marks:
-
Nov 19th, 2002, 09:17 AM
#4
Stuck in the 80s
Yes it do.
New to VB 6: As they've already said, use the header() function. But keep in mind that you can't have any output to the screen before you use it.
That's also a tricky one. Make sure your PHP tags are at the top of your document, no spaces before them, otherwise that'll count as output to the screen.
-
Nov 19th, 2002, 08:28 PM
#5
Hyperactive Member
I might be wrong but that header doesnt wait 3 seconds like he wanted.
Kevin Carpenter
Currently Working in the CAOS (CA Operating System) Group
-
Nov 19th, 2002, 11:01 PM
#6
Stuck in the 80s
the header("Location: ") is automatic. There is no wait, unless a slow connection to the internet causes that wait. Read the manual.
-
Nov 20th, 2002, 07:25 PM
#7
Fanatic Member
If you want it to be timed
<meta http-equiv=\"Refresh\"content=\"XXX;URL=page.php\">
XXX = number of seconds
-
Nov 21st, 2002, 08:12 AM
#8
Frenzied Member
Yep, but as I've said before some browsers don't support that, so it's better to use the PHP header if you can. Also I think some browsers may have trouble if the URL is not absolute.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|