Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/09/2010, 08:02
CdT
 
Fecha de Ingreso: septiembre-2007
Mensajes: 3
Antigüedad: 16 años, 8 meses
Puntos: 0
que = $_POST["unitats"]; NO FUNCIONA

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.