<?php print $_POST['submit']; ?>
there was no element named "submit", and what property of <a> you want to pass to process.php? href? text link? or ??
fyi, "submit" is a bad idea for form element name, pick another one.
some example:
HTML Code:
<form name="formname" method="post" action="process.php" >
<input type="hidden" name="submitdata" value=""/>
<h3> Player Stats </h3>
<ul>
<li><a name="option1" href="#" onclick="submitForm(this);">option1</a></li>
</ul>
</form>
<script type="text/javascript">
function submitForm(a){
document.formname.submitdata.value=a.innerHTML;
document.formname.submit();
}
</script>
and the process.php:
PHP Code:
<?php print($_POST['submitdata']); ?>
Bookmarks