Return to Snippet

Revision: 30789
at August 22, 2010 07:18 by Arcnerva


Updated Code
<?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>

Revision: 30788
at August 22, 2010 07:02 by Arcnerva


Initial Code
<?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>';
}
?>

Initial URL


Initial Description


Initial Title
UHC PHP Nav Link

Initial Tags


Initial Language
PHP