Guest User

Untitled

a guest
Dec 26th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.87 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. # include things we need
  4. use CGI qw/:standard/;
  5.  
  6. # make a new CGI object
  7. #$q = CGI->new qw/:standard/;
  8. print header,
  9.         start_html('Brunto'),
  10.         h1({-color=>red,-font=>'courier new'},"brunto"),
  11.         start_form,
  12.         "Navigation: ",
  13.         popup_menu(-name=>'navbox',
  14.                 -values=>['Home','Status']),p,
  15.         submit,
  16.         end_form,
  17.         hr,"\n";
  18.  
  19. #login form
  20. print h2("Login"),
  21.         start_form({-action=>"login.pl",-name=>"loginform"}),
  22.         "\nUsername: ",
  23.         textfield({-name=>uname, -id=>un}),br,
  24.         "\nPassword: ",
  25.         password_field({-name=>pword, -id=>pw}),br,"\n",
  26.         hidden({-name=>buntro, -value=>remote_host()}),
  27.         submit,
  28.         end_form,
  29.         hr,"\n";
  30.  
  31. if(param('navbox')){
  32.         print "You are currently in ",em(param('navbox'));
  33. }
  34. print end_html;
Add Comment
Please, Sign In to add comment