Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-07 Thread Richard Lynch
Add another page asking the user to CONFIRM the amount that you think you got. On Thu, August 2, 2007 3:07 pm, Dan Shirah wrote: > Greetins all, > > In my form I have an area where the user enters in the payment amount: > > name="payment_amount"> > > This is all fine and dandy and works as generi

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-03 Thread Dan Shirah
Thanks for all of the suggestions. While I agree that I shouldn't have to write a check for stupid users, the supervisor of the employees that will be using this application is VERY insistent! I am going to try the Javascript route...too bad the javascript forums are not as helpful as all of you!

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-03 Thread David Giragosian
On 8/3/07, tedd <[EMAIL PROTECTED]> wrote: > > At 12:57 AM +0200 8/3/07, M. Sokolewicz wrote: > >Now, as mentioned before: You have to decide for yourself if your > >application is the correct place to check for the stupidity of your > >users. > > Check for the ignorance of your users -- there's a

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-03 Thread tedd
At 12:57 AM +0200 8/3/07, M. Sokolewicz wrote: Now, as mentioned before: You have to decide for yourself if your application is the correct place to check for the stupidity of your users. Check for the ignorance of your users -- there's a difference. Cheers, tedd -- --- http://sperling.c

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread M. Sokolewicz
Tijnema wrote: On 8/2/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: Greetins all, In my form I have an area where the user enters in the payment amount: This is all fine and dandy and works as generically as it can. BUT, the problem is that I need to make sure the user didn

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread Tijnema
On 8/2/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: > Dan Shirah wrote: > > Greetins all, > > > > In my form I have an area where the user enters in the payment amount: > > > > > > > > This is all fine and dandy and works as generically as it can. BUT, the > > problem is that I need to make sure t

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread David Giragosian
On 8/2/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: > > Dan Shirah wrote: > > Greetins all, > > > > In my form I have an area where the user enters in the payment amount: > > > > name="payment_amount"> > > > > This is all fine and dandy and works as generically as it can. BUT, the > > problem is t

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread Eric Butera
On 8/2/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > Greetins all, > > In my form I have an area where the user enters in the payment amount: > > > > This is all fine and dandy and works as generically as it can. BUT, the > problem is that I need to make sure the user didn't fat finger any of the >

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread Daniel Brown
On 8/2/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > Greetins all, > > In my form I have an area where the user enters in the payment amount: > > > > This is all fine and dandy and works as generically as it can. BUT, the > problem is that I need to make sure the user didn't fat finger any of the >

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread Brad Bonkoski
Dan Shirah wrote: Greetins all, In my form I have an area where the user enters in the payment amount: This is all fine and dandy and works as generically as it can. BUT, the problem is that I need to make sure the user didn't fat finger any of the numbers. For instance, in my generic text f

Re: [PHP] numbers as strings

2005-05-10 Thread Jon Aston
Just as a note I had a bit to test and your version works $str = "$c$a$b"; does return 012 all I was getting was 12 after looking at the manual I see that PHP was evaluating each piece as a number so it expected that the built variable would be a number. "Rory Browne" <[EMAIL PROTECTED]> wrote in

Re: [PHP] numbers as strings

2005-05-10 Thread Jon Aston
Normally it truncates the leading zeros if there are any. I will try your method when I get a moment. got switched on project. "Rory Browne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] For the most part you can simply treat them as strings. What is happening that shouldn't be hap

Re: [PHP] numbers as strings

2005-05-09 Thread Rory Browne
For the most part you can simply treat them as strings. What is happening that shouldn't be happening, or what should be happening, but isn't? > let us say > $a = 1; > $b = 2; > $c = 0; $str_a = (string)$a; $str_b = "$b" > I would like to be able to > $str = $c.$a.$b; Does that not work? What

Re: [PHP] numbers to text

2003-07-11 Thread Jeff Harris
On Jul 11, 2003, "Pete Morganic" claimed that: |Anyone know of a class or function that converts numbers to readable text | |eg inputing the number would output text as in | |120 = one hundred and twenty |3600 = three thousand six hundred | | |tia | |pete | How about http://pear.php.net/package-i

RE: [PHP] numbers problem

2003-03-23 Thread John W. Holmes
> Hi, I'm using a mysql connection to dinamically fill a table with > descriptions, prices, and so on... > > But when the script takes the price of a Plasma Monitor, that costs > 8025.00 > $, it outputs only 8,00. > I recall it by typing : > > echo $row_Recordset1['Prezzo'] > > And please note t

Re: [PHP] numbers problem

2003-03-23 Thread Hugh Danaher
Emanuele, Some parts of the world use the coma as the separator between whole numbers and decimals (e.g. Germany & France) and php is formating the number according to this style. I surmise that the numbers stored in your database have been stored with comas separating the thousands from the hundr

Re: [PHP] numbers problem

2003-03-23 Thread David Otton
On Sun, 23 Mar 2003 14:09:26 +0100, you wrote: >And please note that I've seen that it happens only when >$row_Recordset1['Prezzo'] > 1000 What's the largest number you can get from the table? Exactly? 1000 is suspiciously close to 1024. Is it possible that your table is using a smaller data type

RE: [PHP] numbers

2003-01-21 Thread cj
I used the floor() function -Original Message- From: Brian T. Allen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 11:49 AM To: [EMAIL PROTECTED]; 'Php-List (E-mail)' Subject: RE: [PHP] numbers Which, for the list, can be number_format(), among other thin

RE: [PHP] numbers

2003-01-21 Thread Brian T. Allen
Which, for the list, can be number_format(), among other things. Brian > -Original Message- > From: cj [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 5:18 PM > To: Php-List (E-mail) > Subject: RE: [PHP] numbers > > > I just found the answer &g

RE: [PHP] numbers

2003-01-21 Thread cj
I just found the answer -Original Message- From: cj [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 11:07 AM To: Php-List (E-mail) Subject: [PHP] numbers G'day all I have a calculation which gives me a number ie 6976587.4169922 This number is works outed by dividing a variab

Re: [PHP] Numbers with leading zero...

2002-07-24 Thread Tom Rogers
Hi, Thursday, July 25, 2002, 10:44:00 AM, you wrote: v> Hi. v> I've got this script that needs to take for examle 02 and increase that to v> 03. v> but when i run the script $Num++; it changes 03 to 3; v> is there not a function that adds leading zeros onto a string ? have a look at the spr

RE: [PHP] Numbers with leading zero...

2002-07-24 Thread Martin Towell
you could use: printf("%02d", ++$Num); or if you want to put it back into $Num, use the sprintf() version -Original Message- From: vins [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Numbers with leading zero... Hi. I've got this