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
mail to friend - fixing the referring page
Old 10-06-2007, 03:42 PM mail to friend - fixing the referring page
Experienced Talker

Posts: 45
Name: Tonyo
Trades: 0
I'm trying to change the tell a friend script that I am using on a website. Currently its set up to let the recipient know which page they are being referred to. I want to change it so that they are referred to the home page, ie, www.atriskstoriesofhope.com. The part that needs to be changed (which I'm about 99% positive) is the HTTP_REFERER. How would I go about doing this?

PHP Code:
<? $refurl $_SERVER['HTTP_REFERER']; ?>
<? 
print $refurl;?>
<form name="tellafriend" action="tellafriend.php" method="post" onsubmit="return checkfields()">&nbsp;
<div align="center">
<center>
<table border="0" cellpadding="10" cellspacing="0">
<tr>
<td> *your name:</td>
<td>
<input size="30" name="name" maxlength="45">
master_debator is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2007, 04:06 PM Re: mail to friend - fixing the referring page
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
If you want to redirect the user, use
header("Location: http://www.example.com");
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 10-06-2007, 04:39 PM Re: mail to friend - fixing the referring page
Experienced Talker

Posts: 45
Name: Tonyo
Trades: 0
Quote:
Originally Posted by Foundationflash View Post
If you want to redirect the user, use
header("Location: http://www.example.com");
I don't want to redirect people. The current script emails the page that they were referred from.
master_debator is offline
Reply With Quote
View Public Profile
 
Old 10-06-2007, 09:37 PM Re: mail to friend - fixing the referring page
Average Talker

Posts: 22
Name: Paul
Trades: 0
I'm a bit confused by the question also!! You said in your question the script emails them to let them know which page they are being referred to. In your 2nd post, you say it emails saying the page they were referred from!! Who does it email and what does it say? And what do you want it to do???
__________________
Free Web Hosting Available At Simply Web Host

Please login or register to view this content. Registration is FREE
smithster is offline
Reply With Quote
View Public Profile Visit smithster's homepage!
 
Reply     « Reply to mail to friend - fixing the referring page
 

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