CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> General -> Web Design

 Distinguish between Browser entered URL and a link

Print topic Send  topic

Author Message
mrachow


Posts: 509
Posted: 10/22/2004, 2:01 AM

Hi,

I would be glad about hints for the following situations.

For the actual page: Is it possible to find out if it was called by entering the URL into the browser or by an anker tag (href)?

In addition look at this indirect way.
Via a link a script is called that produce no page. Its only purpose is to route to another page.

Again here is it possible to recognize if a user has started that router script while entering the URL into the browser?

Thanks,
Michael
_________________
Best regards,
Michael
View profile  Send private message
greg
Posted: 10/28/2004, 3:44 AM

You have to look the REFERER variable from the SERVER array. If it's
empty, then the user typed the URL or used a bookmark; else it contains
the page containing the link the user clicked.

More than ever, phpinfo() is your friend.

Greg


mrachow wrote:
> Hi,
>
> I would be glad about hints for the following situations.
>
> For the actual page: Is it possible to find out if it was called by entering
> the URL into the browser or by an anker tag (href)?
>
> In addition look at this indirect way.
> Via a link a script is called that produce no page. Its only purpose is to
> route to another page.
>
> Again here is it possible to recognize if a user has started that router script
> while entering the URL into the browser?
>
> Thanks,
> Michael
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
mrachow


Posts: 509
Posted: 10/31/2004, 10:55 AM

Thanks greg,

This works for me.

My "invisible" script have not to occur in getenv("HTTP_REFERER").

Regards,
Michael
_________________
Best regards,
Michael
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.