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
Need help with PHP redirect
Old 08-05-2004, 03:37 AM Need help with PHP redirect
Novice Talker

Posts: 7
Trades: 0
Hi,

I would like to create a php redirect web page.

I realize that I can redirect a page using the following code:
<?php
header("Location: http://www.domain.com/");
exit;
?>

My problem is, I'd like to redirect to a link that has php in it:
http://www.clickbank.net/sell.cgi?link=clientid/2/test&seed=thankyou<?php echo mktime(); ?>

How do I go about doing this?

- Bina.
bina_oz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-05-2004, 03:50 AM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
It's just a string, use it as if you were trying to include some function output in any old string (via the "dot" operator).

PHP Code:
<?php

header
('Location: http://www.clickbank.net/sell.cgi?link=clientid/2/test&seed=thankyou' mktime());
exit;

?>
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
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

Christopher is offline
Reply With Quote
View Public Profile
 
Old 08-05-2004, 04:21 AM
Novice Talker

Posts: 7
Trades: 0
Thanks Chroder
bina_oz is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help with PHP redirect
 

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.11497 seconds with 12 queries