Tengo este pequeño codigo y no entiendo porque no me funciona:
 
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<SCRIPT>
	function afegiringredient()
	{
		que = $_POST["unitats"];
		alert(que);
	}
</SCRIPT>
<div class='ingredients'>2 gr de pa</div>
<form name='recepta' method='post' action='intrrecepta.php'>
	<input type='text' name='unitats' size='4'><A href='javascript:afegiringredient()'><IMG src='imatges/afegir.jpeg' border='0'></A>
</form>
 
Alguien me puede hechar un cable?
Gracias. 
  
 

