0

The url to my site is [snipped].
There are a few sub pages on my site, (called "features", "benefits", and "read more".) I wanted to know how to make the button on the bottom of these pages that says "home" link to the previous page, instead of linking to the home page (index).
If anyone can help, I'd greatly appreciate it.
Thank you!

Edited by Ezzaral: Snipped link. Not relevant to the question.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by suavedesign
0

<input type=button value="Back" onClick="history.go(-1)">

<?php if (isset($_SERVER['HTTP_REFERER'])) { echo "<a href='$_SERVER['HTTP_REFERER']'>back</a>"; } else { echo "<a href='javascript:history.go(-1)'>back</a>"; }?>

Edited by almostbob: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.