Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Printer Friendly

Post new topic   Reply to topic
HTTP_REFERER doesn't exist
View previous topic :: View next topic  
Author Message
dnuttall



Joined: 20 Sep 2003
Posts: 1

PostPosted: Sat Sep 20, 2003 6:21 pm    Post subject: HTTP_REFERER doesn't exist Reply with quote

I've tried both version 1 and version 2 of this CJ Printer Friendly concept and both fail, apparently because I'm somehow not showing the HTTP_REFERER value that it expects to find.

My environment is Win2K with IIS and PHP 4.3.2.

My PHP script generates a small display of values that the user just created by filling in a form.

Within the display, I've included the <!--start--> and <!--end-->.

When I execute the HREF to the printpage.php, the content between the start/end is NOT passed and the printpage script howls about the absence of HTTP_REFERRER.

PHP is running GLOBALS OFF but sessions are in use.

If you have an idea on what to do to make it work, short of creating static HTML files, please drop me a note.

TIA.

Dave Nuttall
San Antonio, TX
Back to top
View user's profile Send private message
codefileuk



Joined: 21 Jun 2003
Posts: 175
Location: Cheshire, UK

PostPosted: Tue Sep 23, 2003 11:37 am    Post subject: Reply with quote

$HTTP_REFERER is a variable that stores the page that a visitor has come from. If cj-design.com has a link to your site, and a visitor clicks on that link, the cj-design page will be stored in the variable. If you type the address to the script into the address bar directly, there will not be a value in $HTTP_REFERER.

Try creating a page with a link to the script instead of typing the address in directly.
_________________
Web Hosting from 10.00 p/a or 84 pence p/m!

Free domain with every hosting plan purchased. 10% off if you sign-up before Feb 05 and you are a member of this forum! Go to www.openlux.co.uk/!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mlomp



Joined: 11 May 2005
Posts: 1

PostPosted: Wed May 11, 2005 5:34 pm    Post subject: Reply with quote

Notice: Undefined variable: HTTP_REFERER in c:\Inetpub\wwwroot\printpage.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\printpage.php:7) in c:\Inetpub\wwwroot\printpage.php on line 10

i get the same error, and i am printing <%=Request.servervariables("HTTP_REFERER")%> at the top of the asp file i am sending.
Back to top
View user's profile Send private message
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 554
Location: South East Kentucky,U.S.A.

PostPosted: Thu May 12, 2005 1:28 am    Post subject: Reply with quote

mlomp wrote:
Notice: Undefined variable: HTTP_REFERER in c:\Inetpub\wwwroot\printpage.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\printpage.php:7) in c:\Inetpub\wwwroot\printpage.php on line 10

i get the same error, and i am printing <%=Request.servervariables("HTTP_REFERER")%> at the top of the asp file i am sending.



Please post your problem as a new post. This post is outdated . { Tue Sep 23, 2003 }
_________________
Cheers,
Danny
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
View user's profile Send private message
darkcarnival
CJ-Design.com Admin



Joined: 10 Jul 2003
Posts: 1325
Location: Michigan

PostPosted: Thu May 12, 2005 3:07 am    Post subject: Reply with quote

i agree Wink
_________________
List of Mods to James Scripts!
http://www.cj-design.com/forum/viewtopic.php?t=1798

Elite Bulletin Board v0.5 help test it for me:
http://www.elite-board.z42.us/
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Printer Friendly All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design