DenMaki DenMaki - 1 year ago 137
PHP Question

How to go back to previous page with retain the ID's in URL Codeigniter

this is my always code in go back

<a href="<?=site_url($controller)?>"><i class="icon-chevron-left"></i> Go Back</a>

My question is that how can i back to my previous page that my retain my id in my previous page like this....

This is my previous page:

This is my current page:

----I want to go back to "/scms/contracts/serial/3"

Answer Source

<a href="#" onclick="window.history.back();">Go back</a>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download