in reply to Simple CGI Login
HTML Loggin Page#!/path/ use strict; use CGI; my $page = new CGI; my $name =$page->param('Uname'); my $password=$page->param('Pword'); if($name ne '' and $password ne ''){ # Display the WebPage } else{ # Show loggin Form }
<html> <head></head> <body> <table> <form method=Post action=yourperlscript.pl > <tr> <td>User Name</td> <td><input type=text name='Uname'></td> </tr> <tr> <td>Password</td> <td><input type=password name='Pword'></td> </tr> <tr> <input type=submit name='submit' value='Submit'> </tr> </form> </table> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple CGI Login
by Xidus (Novice) on Aug 31, 2006 at 13:40 UTC |