mrnutty
08-05-2012, 11:40 AM
Hi
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
kind reagrds
mrnutty
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
kind reagrds
mrnutty