Please someone help me. Here is what I want to do: when I am in page prueba.php and click the submit button I want to go to prueba2.php and send the variable cod. The problem is that in prueba2.php I can“t read the value of cod.
Here is a piece of the code of prueba.php:
echo" <body>";
echo" <form action='prueba2.php?cod=$cod' method='post' name='form1'>";
echo" <p align='center'><font size='5'><b>Formulario de Solicitud de Cables</b></font></p>";
if(!(empty($cod)))
{
$cod=2;
echo "Estoy en el if";
}
else
{ $cod=0;
echo "Estoy en else";
}
I even try to declare cod as hidden:
echo" <input type='hidden' name='cod'>";
but it doesn't work either.
I reaaly apprecciate any help.
Thanks.