questo e' il codice HTML:
cmq adesso ho cominciato a studiare il php, da 2 giorni. Ora sto cercando di fare un po diesperienza con la sintassi:
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
</head>
<body>
<form name="form1" method="post" action="calcolatrice.php">
<div align="center">
<table width="550" border="0" cellspacing="0">
<tr>
<td colspan="5" bgcolor="e2e2e2"><div align="center"><font face="Lucida Calligraphy" size="5" color="#993333">Toty Calculator</font></div></td>
</tr>
<tr>
<td width="40" bgcolor="e2e2e2"></td>
<td width="170"><font face="Georgia, Times New Roman, Times, serif">Inserisci il 1° valore </font></td>
<td width="105"><div align="center"><font face="Georgia, Times New Roman, Times, serif">Scegli l'operazione</font></div></td>
<td width="173"><font face="Georgia, Times New Roman, Times, serif">Inserisci il 2° valore </font></td>
<td width="40" bgcolor="e2e2e2"></td>
</tr>
<tr>
<td bgcolor="e2e2e2"></td>
<td><input name="valore1" type="text" tabindex="1" size="10" maxlength="5"></td>
<td><select class=SELECT name="operazione" tabindex="2">
<option selected>+
<option>-
<option>*
<option>/</option>
</select></td>
<td><input name="valore2" type="text" tabindex="3" size="10" maxlength="5"></td>
<td bgcolor="e2e2e2"></td>
</tr>
<tr>
<td bgcolor="e2e2e2"></td>
<td></td>
<td></td>
<td></td>
<td bgcolor="e2e2e2"></td>
</tr>
<tr>
<td bgcolor="e2e2e2"></td>
<td></td>
<td></td>
<td></td>
<td bgcolor="e2e2e2"></td>
</tr>
<tr>
<td bgcolor="e2e2e2"></td>
<td><input type="submit" value="Calcola" tabindex="4">
<input type="reset" value="Cancella" tabindex="5"></td>
<td></td>
<td></td>
<td bgcolor="e2e2e2"></td>
</tr>
<tr>
<td bgcolor="e2e2e2"></td>
<td></td>
<td></td>
<td></td>
<td bgcolor="e2e2e2"></td>
</tr>
<tr>
<td bgcolor="e2e2e2"></td>
<td bgcolor="e2e2e2"></td>
<td bgcolor="e2e2e2"></td>
<td bgcolor="e2e2e2"></td>
<td bgcolor="e2e2e2"></td>
</tr>
</table>
</div>
</form>
</body>
</html>