Posted By

Arcnerva on 08/22/10


Tagged


Versions (?)

UHC PHP Nav Link


 / Published in: PHP
 

  1. <?php function thelink($tabname, $location, $theanchor){
  2. echo '<a href="#" onclick="document.myform.formVar.value=\''.
  3. $tabname .
  4. '\'; document.myform.action=\''.
  5. $location.
  6. '\'; document.myform.submit(); return false">'.
  7. $theanchor.
  8. '</a>';
  9. }
  10. ?>
  11.  
  12.  
  13. <form method=post name="myform" action="">
  14. <input type="hidden" name="formVar" value="">
  15. <input type="submit" value="Send form!">
  16. </form>

Report this snippet  

You need to login to post a comment.