I have a form like this:
<form id="cars" action="file.php" method="post">
<a href="#" onclick="document.getElementById('cars').submit();"><input type="hidden" value="ford" name="model" />Ford</a>
<a href="#" onclick="document.getElementById('cars').submit();"><input type="hidden" value="toyota" name="model" />Toyota</a>
</form>
However, the $_POST['model']
gave error "Undefined index: model". What's wrong with that?