I am looking for a code, which I can put inside a standard HTML href link - that, once the link is clicked, will immediately update a portion of the link in real-time.
Something like:
<a href="http://example.com/<?php code(); ?>/">Example</a>
Will at first print:
<a href="http://example.com/page1/">Example</a>
And so after it being clicked once, it'll instantly change to:
<a href="http://example.com/page1-clicked/">Example</a>
Anyone got anything simple up the sleeve for that?
Thanks!