Salve,
ho un problema con un codice che in locale funziona benissimo (ho la PHP 4.4.8) mentre sul server remoto (con PHP 4.4.7), mi crea un paio di problemi.
In una pagina ho un form di questo tipo:
codice:
print("<form method=\"POST\" action=\"pdf\">");
print("<select size=\"1\" name=\"tav\">");
print("<option value=\"0\"");
print(">Niente</option>");
print("<option value=\"1\"");
print(">Tutto</option>");
print("</select>");
print("<select size=\"1\" name=\"crt\">");
for ($i=0;$i<=10;$i++)
{
print("<option value=\"".$i."\"");
print(">".$i."</option>");
}
print("</select>");
?>
<input type="hidden" name="ng" value="<?php echo $png ?>">
<input type="hidden" name="na" value="<?php echo $pna ?>">
<input type="hidden" name="dt" value="<?php echo $pdt ?>">
<input type="hidden" name="pt" value="<?php echo $ppt ?>">
<input type="hidden" name="lng" value="<?php echo $lng ?>">
<?php
print("<center><input type='submit' value='INVIA'></center>\n");
print("</form>
\n");
il file pdf.php, recupera le variabili in questo modo:
codice:
$idp="";
if ( ISSET($_GET['pt']))
{
$idp=$_GET['pt'];
}elseif(ISSET($_POST['pt'])){
$idp=$_POST['pt'];
}
$gios="";
if ( ISSET($_GET['ng']))
{
$gios=$_GET['ng'];
}elseif(ISSET($_POST['ng'])){
$gios=$_POST['ng'];
}
$gion="";
if ( ISSET($_GET['na']))
{
$gion=$_GET['na'];
}elseif(ISSET($_POST['na'])){
$gion=$_POST['na'];
}
$fine="";
if ( ISSET($_GET['dt']))
{
$fine=$_GET['dt'];
}elseif(ISSET($_POST['dt'])){
$fine=$_POST['dt'];
}
$crt=0;
if ( ISSET($_GET['crt']))
{
$crt=$_GET['crt'];
}elseif(ISSET($_POST['crt'])){
$crt=$_POST['crt'];
}
$tav=0;
if (ISSET($_GET['tav']))
{
$tav=$_GET['tav'];
}elseif(ISSET($_POST['tav'])){
$tav=$_POST['tav'];
}
Tutte le variabili vengono recuperate correttamente ma $tav è sempre 0!
Ripeto questo succede solo sul server remoto.
Qualcuno può aiutarmi a capire cosa succede e perché?
Grazie infinite,
Nino
PS il tutto succede qui: http://www.swahili.it/bao/chapa.php?lng=it