Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Hide mt_rand
08-05-2012, 12:40 PM #1
- Join Date
- Aug 2012
- Thanked 0 Times in 0 Posts
I'm a noob and I know this will be a stupid question to many of you but I am desperate.
I aneed to append a random number to a name to keep it unique, however I do not want the number to be displayed. The code below is what I am trying but It doesn't seem to work. Could some one please give any tip/s?
The code I am using so far is:
$userData['userName'] = type="hidden" value="<?php echo mt_rand(100000, 999999) $this->trimUserName($user->get('name'));
Any help on this would be really appreciated
thanks in advance
Last edited by mrnutty; 08-06-2012 at 08:17 PM.