Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: Hide mt_rand

  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hide mt_rand

    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
    Last edited by mrnutty; 08-06-2012 at 07:17 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •