Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Double redirect? (first URI then URL)
Old 07-06-2006, 09:33 AM Double redirect? (first URI then URL)
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 201
Trades: 0
Hi,

PHP Code:
<?php
    
// Generic example of URI and URL
    
header("location: mailto:ex@tra.info");
    
header("location: http://www.yahoo.com/");
?>
Everyone understands what I whould like to achieve here. But how can I do this?

I first need to activate a URI then redirect the user to anther URL.

Tips? Ideas?
__________________
I do not share ad revenue.
Moldarin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2006, 12:27 PM Re: Double redirect? (first URI then URL)
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,111
Name: Matt. (>',')>
Location: London, England.
Trades: 0
Im not sure you would be able to do it with php headers, Looking at that you would get "headers have already been sent" errors.

Could be possible with JS though.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 07-06-2006, 12:32 PM Re: Double redirect? (first URI then URL)
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 201
Trades: 0
Alternative ways of doing this? Without JavaScript...
__________________
I do not share ad revenue.
Moldarin is offline
Reply With Quote
View Public Profile
 
Old 07-06-2006, 04:27 PM Re: Double redirect? (first URI then URL)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by Moldarin
Everyone understands what I whould like to achieve here.
Don't be so sure of that


Quote:
Originally Posted by Moldarin
I first need to activate a URI then redirect the user to anther URL.

Tips? Ideas?
A mailto link is NOT a URI.


So what exactly are you trying to do ?

It it looks like you want to open the users email client then redirect them, because that is what would happen if it worked.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-06-2006, 05:03 PM Re: Double redirect? (first URI then URL)
Webmaster Talker

Posts: 626
Trades: 0
Why not try opening the mail client and then using a META refresh?
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 07-08-2006, 11:48 PM Re: Double redirect? (first URI then URL)
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
You can try using the php mail() function to sendmail then redirect - It would not open the client side email tho.

Otherwise, you might be able to write a js function that executes onload or onexit.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Double redirect? (first URI then URL)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23012 seconds with 12 queries