Why not use a random number itself as a passcode?
--
Manohar Kamath
Editor, .netBooks
www.dotnetbooks.com
"Alistair" <email@wormfilteralistair.inuk.com> wrote in message
news:vo08kriifrma2e@corp.supernews.com...[color=blue]
> Hello folks...
>
> this is my first post in here. I'm new to ASP having done all my previous
> work in Flash and bog standard HTML. Only been learning for a couple of
> weeks.
>
> anyway...I have been building a guestbook type page, but as with quite a[/color]
lot[color=blue]
> of guestbooks and stuff some of the comments that get placed are not[/color]
exactly[color=blue]
> suitable, and tracking people down is a little difficult.
>
> maybe you all can think of much better ways but remember I'm a newbie and[/color]
am[color=blue]
> working my way through..
>
> so...
>
> I have a form where people sign up to become a member..they select their
> name and password etc and can log in, but this is completely anonymous....
>
> so..I got an email script set up and working (took me a long time to[/color]
figure[color=blue]
> that one out!!!) and connected to a dbase, The user gives me his email[/color]
addy[color=blue]
> and name and a random number is generated, stored as his password and the
> password is mailed to him,...thus if he doesn't give me a corect email[/color]
addy[color=blue]
> he doesn't get his password and therefore can't sign in or post nasty
> comments..
>
> But a number password isn't really all that and I would prefer to have a
> random word generated.
>
> is this possible??
>
> again, being a newbie and not very up on what I can/can't do...I thought[/color]
of[color=blue]
> the following...
>
> 1) Store a bunch of words in a text file with a space between each one
> 2) Read in this file and store it as a variable
> 3) Trim off a random number of characters from the start of the text
> 4) Then search for the next space (which would be the beginning of the[/color]
next[color=blue]
> complete word)
> 5) The next space after that would then mark the end of the word
> 6) count the characters between the two spaces to give me the word length
> 7) and then select that number of characters and then I have a randomly
> selected word!!!
>
> I can't see why it wouldn't work as it seems logical to me, but maybe
> someone (Ray seems to be the god of ASP (I've been reading here for a[/color]
couple[color=blue]
> of weeks and he seems to know everything!!!!)... can tell me otherwise?
>
> many thanks
>
>
>
>[/color]