Hello,
i have a html order form that needs a number generator. for example it generates random 5 digit numbers or letters.
if anyone has any information on how to do this please tell me.
Thanks!
HTML Number Generator
Moderator: General Moderators
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
I don't think it can be done with an "HTML" page. HTML pages are 'static' by definition and can not have dynamic information put into them without some kind of server side scripting language....that's where PHP comes into play.
You can generate HTML code with php and inject your random number that way.
something like this should work (for a purley 5 digit random number):
You can generate HTML code with php and inject your random number that way.
something like this should work (for a purley 5 digit random number):
Code: Select all
echo substr(rand(1,100000),0,5);- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York