Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Creating A Real BACK Button with Server Side Includes!
humanizingme
follow
0
5-25-2009 1:08 PM
101 views
tags:
web
,
webserver
,
webdesign
,
ssi
,
html
,
website
,
howto
,
apache
,
referer
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
'The wisest reflection I've seen on Ft. Hood so far ...'
Tropical Ocean Photography
Women fined for feeding ducks
The Perfect Example
$1 billion scam
"Drug War" Does More Harm Than Marijuana
Silly hermit crab. That is not a shell.
McCain Campaign Emails Contradict Palin's "Going Rogue"
Eight of the World’s Most Unusual Plants
Ladies of Arlington Never Miss Final Salute
visit the
Top Clips page
View the Top Clips from
May 25, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/b89fc5dc-cad1-441e-8f2f-fccdd9da72e4/40F58C85-215D-429A-8965-3FFD0D6C0CB0/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://bignosebird.com/sdocs/backbutton.shtml" href="http://bignosebird.com/sdocs/backbutton.shtml" style="font-size: 11px;">bignosebird.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://bignosebird.com/sdocs/backbutton.shtml"><FONT face="Verdana,Helvetica,Arial">The Apache Environment variable, <B>HTTP_REFERER</B> is used above to show you the full URL of the page that brought you here. In the example above, Extended SSI (XSSI) logic was used to see if there was a value in the HTTP_REFERER variable. This allows you to handle situations such as bookmarks or browsers that do not report a value for the HTTP_REFERER. Let's look at the source code: </FONT></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://bignosebird.com/sdocs/backbutton.shtml"><FONT face="Verdana,Helvetica,Arial"> <!--#if expr="${HTTP_REFERER} =/http/" --> <B>You came from <!--#echo var="HTTP_REFERER"--></B> <!--#else --> <B>I don't know where you came from</B> <!--#endif --> </FONT></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://bignosebird.com/sdocs/backbutton.shtml"><FONT face="Verdana,Helvetica,Arial"><FONT color="#660000"><B>I don't have XSSI, Can I still have a back button?</B></FONT> Of course. With any SSI compatible server you can simply do this: </FONT></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://bignosebird.com/sdocs/backbutton.shtml"><FONT face="Verdana,Helvetica,Arial"> <A HREF="<!--#echo var="HTTP_REFERER"-->">BACK</A> </FONT></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/40F58C85-215D-429A-8965-3FFD0D6C0CB0/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK