Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-05-2012, 11:40 AM   PM User | #1
mrnutty
New to the CF scene

 
Join Date: Aug 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mrnutty is an unknown quantity at this point
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..
mrnutty is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:20 PM.


Advertisement
Log in to turn off these ads.