Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/05/2006, 19:00
mautrix
 
Fecha de Ingreso: mayo-2006
Mensajes: 1
Antigüedad: 18 años
Puntos: 0
que hacer con 2 $_POSt??

buenas... tengo un problema.....en php $_POST.....mi codigo es el sgte..

$fur=new furnisherOrderProducts();
$temp= $fur->findByFurnisherId($furnisherId);
$smarty->assign("furnisherName",$temp[0]['furnisherName']);

if (ISSET($_POST['productId'])) {
$furnisherOrder= new furnisherOrderProducts($_POST['productId']);

$furnisherOrder->addFurnisherProduct($_POST);
}
$datos=$fur->findByFurnisherId($furnisherId);
$smarty->assign("order",$datos[0]['ordersId']);
print_r($datos[0]['ordersId']);
$smarty->assign("data",$fur->findByFurnisherId($furnisherId));


mi problema es q al llamar por primera ves al $_POST...muestra dos datos....luego....cuando hago la funcion addFurnisherProducts...cambia a 5 datos del $_POST..y no muestra los anteriores dos.....estos 2 los necesito para mostrar los ids...de cada uno......
gracias...