Código PHP:
Ver original
<form id="form1" name="form1" method="post" action="test.php"> <table width="200" border="0"> <tr> <td>Fono</td> <td><input number name="fono" type="text" id="fono" value="<? if($pdata['fono']!=""){ echo $pdata['fono'];}else{ echo "0";}?>" /></td> </tr> <tr> <td>Cable</td> <td><input name="cable" type="text" id="cable" value="<? if($pdata['cable']!=""){ echo $pdata['cable'];}else{ echo "0";}?>" /></td> </tr> <tr> <td>Comida</td> <td><input number name="food" type="text" id="food" value="<? if($pdata['food']!=""){ echo $pdata['food'];}else{ echo "0";}?>" /></td> </tr> <tr> <td>Total</td> <td><input number name="tot" type="text" id="tot" value="<? if($pdata['tot']!=""){ echo $pdata['tot'];}else{ echo "0";}?>" /></td> </tr> </table> </form>