/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function thelink($tabname, $location, $theanchor){ echo '<a href="#" onclick="document.myform.formVar.value=\''. $tabname . '\'; document.myform.action=\''. $location. '\'; document.myform.submit(); return false">'. $theanchor. '</a>'; } ?> <form method=post name="myform" action=""> <input type="hidden" name="formVar" value=""> <input type="submit" value="Send form!"> </form>