Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
New and have a question
Old 01-21-2007, 11:02 AM New and have a question
Average Talker

Posts: 15
Name: Mike
Trades: 0
I am new to this site and i have a question. I dont know if this is the right place or not but here goes. Im currently making a Lotto type website,and i dont know where to look but i need to find something when users sign up,a random number is giving to them. Thats basicly all i need...Any help would be greatly appreciated..


Thanks Alot,
Mike Cox
MikeCox is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2007, 01:22 PM Re: New and have a question
Banned

Posts: 905
Name: Travel Agent
Trades: 0
A random number meaning what -- random generated password?
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-21-2007, 01:45 PM Re: New and have a question
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
You just need a script is all. You could do it with Javascript. The better option would be to use a server-side script. Try posting in the programming forums.

For instance, PHP has a built in function that will produce a random number when it is called.

Last edited by Tom_M; 01-21-2007 at 01:48 PM..
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 01-21-2007, 06:49 PM Re: New and have a question
Average Talker

Posts: 15
Name: Mike
Trades: 0
thanks alot Tom M. Thats what i needed.
MikeCox is offline
Reply With Quote
View Public Profile
 
Old 01-21-2007, 10:12 PM Re: New and have a question
Experienced Talker

Posts: 31
Trades: 0
PHP Code:
<?php
print rand(11000000);
?>
This will print a random number between 1 and 1000000.
__________________

Please login or register to view this content. Registration is FREE
manilodisan is offline
Reply With Quote
View Public Profile
 
Old 01-22-2007, 12:44 PM Re: New and have a question
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Quote:
Originally Posted by manilodisan View Post
PHP Code:
<?php
print rand(11000000);
?>
This will print a random number between 1 and 1000000.
That will work, but the number could be anything from 1 to whatever. If you need the numbers to be the same number of digits, I think you have to put a little more into the equation.
Tom_M is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to New and have a question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23558 seconds with 12 queries