i m using a button to go back page (let zero.php) so i m using this
<input type="button" value="Back" class="button" onClick="javascript:history.go(-1)" />
but it fails when we do some stuff on that page
like from one.php we add some data and go to two.php( where database quary runs) and again comes to a.php and then click on that button then it goes nowhere(logically it goes two two.php but there is header location of one.php is described)
another method is
<a href="last.php"><input type="button" value="Back" class="button" /></a>
but it look very odd
please suggest me the best way to go back through <input type="button">
or
<button type="submit">