Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / How do i create a Password Input

Author
Message
vivi
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Jan 2003 19:45
I want to create an INPUT with (eg) *****-***** for a replacement for hello-world.
WHY WAIT FOR GAMES.......MAKE THEM COME TO YOU
>>>>www.sharksoft.scripterz.com<<<<<
THANKS IN ADVANCE
Arrow
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 12th Jan 2003 21:56
Check out DB heaven they cover this kind question in one of there tutoirals for DBPro.

This is Truth!
This is my Belief!
...at least for now.
vivi
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Jan 2003 15:53
Cant find it only DB........give me a href

WHY WAIT FOR GAMES.......MAKE THEM COME TO YOU
>>>>www.sharksoft.scripterz.com<<<<<
THANKS IN ADVANCE
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 13th Jan 2003 16:20
Have a look at my InputText routine in the code snippets and replace the bit that displays the key pressed with displaying a "*"

Jas
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th Jan 2003 17:39
You could try this - untested however.



HTH


Van-B
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th Jan 2003 17:42
Nope, that wont work, ignore it and try this:




Van-B
vivi
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 17th Jan 2003 21:57
thanks, I could use a vaiable to set a password. Couldn't
I?

WHY WAIT FOR GAMES.......MAKE THEM COME TO YOU
>>>>www.sharksoft.scripterz.com<<<<<
THANKS IN ADVANCE
k0shi
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 19th Jan 2003 06:23
tested
this took me along time



If practice makes perfect and no1s perfect y practice?
.....:::<>-<K0shi>-<>:::.....
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 19th Jan 2003 06:41
dont forget to incorporate a backspace function so you can delete if you mess up.

make a password string
do
If key pressed
add to password string the key pressed
print another *
if backspace
delete the last letter of the password string
remove a *
if enter
check it if works
loop
does it work?
if string created in loop=string of password
print "yay"

Login to post a reply

Server time is: 2024-11-23 21:37:06
Your offset time is: 2024-11-23 21:37:06