Format_number and input_object_tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,



I have 2 problems.

First: When an user type a number that have comma the numbers after of comma doesnt safe.

example:

the user wants save the number:

10,85


I dont know but the symfony just save the number 10. The 85 is ignored.


How i fix it ?


Second problem:


i'm trying format a number in the object_input_tag . How i do it ?



<?php $value = object_input_tag($estoque_entrada, 'getPrecoUnitario', array (
  'size' => 23,
  'control_name' => 'estoque_entrada[preco_unitario]',
)); echo $value ? $value : '&nbsp;' ?>


the correct way is change the getPrecoUnitario function in actions.class.php ?



thanks




Augusto Morais

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux