Format_number and input_object_tag

From: Date: Wed, 19 Sep 2007 19:30:53 +0000
Subject: Format_number and input_object_tag
Groups: php.general 
Request: Send a blank email to php-general+get-262256@lists.php.net to get a copy of this message
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

« previous php.general (#262256) next »