in reply to Simple CGI Login

What is your Form look like? and what do you mean by 'it seems not wroking' ?
I am a newbie to Perl, so I don't know these tips are really useful for you :). anyways, let me give my view points as well.

how do your form knows where it should pass its Post data once a username and password is entered and hits Submit?
and have you tried before to get the Post data through CGI and were you able to get it?
and how about doing it this way?
#!/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 Loggin Page
<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
    I have to say, i totaly forgot about using post to give the infomation to the script, Thanks :)
    im the king of all i survey. my kingdom has lots of dust on it