Page 1 of 1

generating 4 digit figures adding comma(), & dot (.)

Posted: Wed Oct 07, 2009 5:48 am
by adsegzy
Hello my Success-Oriented Friends,

Firstly, how do i code my MT_RAND() command to generate just 4 digit numbers for my PIN and confirmation.

Secondly, how do i make the number entered into one of the fields in my form to appear as currency. I want dot (.) to com after the first two digits and comma(,) after every 3 digits for it to look like this (1,234,567.89).

Regards
adsegzy

Re: generating 4 digit figures adding comma(), & dot (.)

Posted: Wed Oct 07, 2009 7:36 am
by robnet

Re: generating 4 digit figures adding comma(), & dot (.)

Posted: Thu Oct 08, 2009 5:55 pm
by John Cartwright
Duplicate. Locked.