<?php //inizio php
$perc_uffcomm_romano=$_POST['perc_uffcomm_romano'];
$perc_uffcomm_gallo=$_POST['perc_uffcomm_gallo'];
$perc_uffcomm_teutone=$_POST['perc_uffcomm_teutone'];
$cap_iniziale_romano=500;
$cap_iniziale_gallo=750;
$cap_iniziale_teutone=1000;
$finale_romano=$cap_iniziale_romano+$perc_uffcomm_ romano%;
$finale_gallo=$cap_iniziale_gallo+$perc_uffcomm_ga llo%;
$finale_teutone=$cap_iniziale_teutone+$perc_uffcom m_teutone%;
?>
Calcolo mercato massimo
<div align="center">[img]http:\\etms.altervista.org/travian/mercato/foto/romano.jpg[/img]</br></div>
<form action="index.php" method="post">
<input type="text" name="perc_uffcomm_romano" size=30 maxlength=30 value="<? echo $perc_uffcomm_romano;?>">Livello corrente dell\'ufficio commerciale
<input type="text" name="finale_romano" size=30 maxlength=30 value="<? echo $finale_romano;?>">Totale capacita
<input type="submit" value="Submit">
</form>
<div align="center">

</div>
<form action="index.php" method="post">
<input type="text" name="perc_uffcomm_gallo" size=30 maxlength=30 value="<? echo $perc_uffcomm_gallo;?>">Livello corrente dell\'ufficio commerciale
<input type="text" name="finale_gallo" size=30 maxlength=30 value="<? echo $finale_gallo;?>">Totale capacita dei Galli
<input type="submit" value="Submit">
</form>
<div align="center">

</div>
<form action="index.php" method="post">
<input type="text" name="perc_uffcomm_teutone" size=30 maxlength=30 value="<? echo $perc_uffcomm_teutone;?>">Livello corrente dell\'ufficio commerciale
<input type="text" name="finale_teutone" size=30 maxlength=30 value="<? echo $finale_teutone;?>">Totale capacita dei Galli
<input type="submit" value="Submit">
</form>