Ciao a tutti! Ho iniziato a fare qualche semplice form in HTML e PHP, ma continua a darmi una schermata bianca. Sapreste dirmi il perché? Dato che il PHP è molto simile al C (che conosco abbastanza bene), so abbastanza bene come si imposta la sintassi.. ma a quanto pare mi da solo schermata bianca. Provare per credere http://furaen.com/lawltest/index.html
Ecco il source code della pagina web dove si trova il form "index.html":
codice:
<html>
<head><title></title></head>
<body>
<form action="gradi.php" method="get">
<table border="0">
<tr><td>Celsius<td>Fahrenheit <tr>
<td><input type="text" name="c0" maxlenght="5" size="6">
<td><input type="text" name="f0" maxlenght="5" size="6">
<tr><td colspan="2"><center><input type="submit" value="Invia!"></center>
</table>
</form>
</body>
</html>
Ed ecco il source code della pagina web "gradi.php"...
Codice PHP:
<?php
if ($c0!="")
{
echo "Gradi Fahrenheit = "
.(9*$c0+160)/5;
}
if ($f0!="")
{
echo "Gradi Celsius = "
.($f0-32)*5/9;
}
?>
Mi sapreste aiutare? Ho provato in qualsiasi maniera, ma non riesco proprio a capire! Grazie mille!