View previous topic :: View next topic |
Author |
Message |
dnuttall New User
Joined: 20 Sep 2003 Posts: 1
|
Posted: Sat Sep 20, 2003 6:21 pm Post subject: HTTP_REFERER doesn't exist |
|
|
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 |
|
codefileuk Senior Member
Joined: 21 Jun 2003 Posts: 175 Location: Cheshire, UK
|
Posted: Tue Sep 23, 2003 11:37 am Post subject: |
|
|
$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 |
|
mlomp New User
Joined: 11 May 2005 Posts: 1
|
Posted: Wed May 11, 2005 5:34 pm Post subject: |
|
|
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 |
|
PHPDUMMY CJ-Design.com Moderator

Joined: 09 Mar 2005 Posts: 569 Location: South East Kentucky,U.S.A.
|
Posted: Thu May 12, 2005 1:28 am Post subject: |
|
|
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 |
|
darkcarnival CJ-Design.com Admin
Joined: 10 Jul 2003 Posts: 1389 Location: Michigan
|
Posted: Thu May 12, 2005 3:07 am Post subject: |
|
|
i agree _________________ Admin of CJ-Design Forum
watch out spammers, I'm watching you!
Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/
version 0.9 coming soon! |
|
Back to top |
|
|