Ben Little

A Students blog about SEO, PHP, jQuery and University.
My Mac’s having a slightly off day.

My Mac’s having a slightly off day.

jQuery - Previous URL

For a clients website I needed to figure out a way to save the previous URL that the visitor came from. This was incase of any errors that occurred, I could just send them back.

<script type="text/javascript">
$(document).ready(function() {
   var $referrer =  document.referrer;
});>
</script>

You can then include the variable $Referrer into anywhere you want - 

Go Back Link:

<a href="<?php $referrer ?>">Click here to go back.</a>

Be careful though as many browsers can disable the referrers and with the right know-how, you can mask your referrer to make it look like you’ve come from another website.

I’m actually gonna start using my Tumblr again, but this time, a PHP and jQuery dev blog, so for all you suckers out there who dont wanna know about the exciting life I lead coding for clients, then nows the the time to unfollow me - I wont be offended, promise :)

Shamoan Mo-Fo!

Shamoan Mo-Fo!

There’s something wrong with her legs, they keep finding their way to the chip shop!

Ben Little (via the-doncastrian)

Is thinking should I move to a self-hosting word press blog?

Optimising Local Businesses Online For FREE!

I’ve been seeing lot’s of WSO’s and E-Books being promoted online at the moment deemed to be the ‘Missing Link’ to Offline Marketing for Businesses.

Myself, I’ve been doing this for a good few months now and I’ve put together a few pointers of which I KNOW, help increase a businesses online presence (& Rankings). Read more to discover these little nuggets of gold for a business!

Read More