UHC PHP Nav Link


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.