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
 
 
When You Register, These Ads Go Away!
Old 08-05-2004, 03:50 AM
Christopher's Avatar
Iced Cap

Posts: 3,113
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;

?>
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
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.11026 seconds with 13 queries