Login Script

  • SLAMdubz44
  • Born
  • Born
  • SLAMdubz44
  • Posts: 4

Post 3+ Months Ago

Can anybody tell me how to creat a login prompt?????
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • stevegmag
  • Novice
  • Novice
  • User avatar
  • Posts: 29
  • Loc: Washington DC

Post 3+ Months Ago

do you just want the prompt? does it need to do anything else?

server platform? scripting language? database drive? simple? complex? .htaccess ok? anything else...

your post is like asking someone to bring you some "food". do you want snacks, fruits, main course? :D
  • Hiei
  • Beginner
  • Beginner
  • Hiei
  • Posts: 51

Post 3+ Months Ago

i've got one login script in perl, it works and you can make adjustments to it but a basic one that i made is this

Code: [ Select ]
print "enter name please: ";
$name = <stdin>;
chomp ($name);

if ($name eq whatever) { print "hello" }; #name is whatever you want.

until ($name eq whatever) { print "enter name please: ";
$name = <stdin>;
chomp ($name) };
if ($name eq whatever) { print "welcome " };

print "enter pass please: ";
$pass = <stdin>;
chomp ($pass);

until ($pass eq blah) { print "enter pass please: "; #pass can be anything
#you want.$pass = <stdin>;
chomp ($pass) };
if ($pass eq blah) { print "your clear" };
  1. print "enter name please: ";
  2. $name = <stdin>;
  3. chomp ($name);
  4. if ($name eq whatever) { print "hello" }; #name is whatever you want.
  5. until ($name eq whatever) { print "enter name please: ";
  6. $name = <stdin>;
  7. chomp ($name) };
  8. if ($name eq whatever) { print "welcome " };
  9. print "enter pass please: ";
  10. $pass = <stdin>;
  11. chomp ($pass);
  12. until ($pass eq blah) { print "enter pass please: "; #pass can be anything
  13. #you want.$pass = <stdin>;
  14. chomp ($pass) };
  15. if ($pass eq blah) { print "your clear" };
it also checks for a password

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 70 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.