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

Reply via email to