PDA

View Full Version : Automatic number format in a form



steveh
08-13-2009, 08:45 PM
Hi all,

I current use the php code for number formating number_format, which is great and works fine once you have updated a record.

What i would really like is that once the user enters the number and tabs or clicks to the next box the number would automatically format.

Just to be clear the format that the number come out in is with a comma separator, so 1000, once saved\submitted the number shows as 1,000.

The code is as follows,

[CODE]
<td class="style8 style8"><?php echo number_format ($row_Recordset1['premium']); ?></td>
[CODE]

Hope this makes sense!

Steve:)