adam_blackice has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w print "Content-type: text/html\n\n"; print"<html><head><title>User-add Page</title></head>"; print"<body>"; print"<H1>Enter Your userName</H1>"; print"<form method='post' action='webmin.pl'>"; print"name: <input type='text' name='name' size=40>"; print"<br>"; print"<input type='submit' value='Submit'><br>"; print"<br>"; print"<input type='reset' value='Clear'>"; print"<br>"; print"</form>"; print"</body></html>";
#!/usr/bin/perl -w use CGI; $cgi=new CGI; print $cgi->header(); print $cgi->body("<p><center><h1> User add page</p><center></h1>"), $c +gi$ $input = $cgi->param('name'); $name = system "useradd $input"; print "anew user has been added to you system :$name"; print $cgi->end_html();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi script error
by graff (Chancellor) on Apr 09, 2007 at 01:11 UTC | |
|
Re: cgi script error
by f00li5h (Chaplain) on Apr 09, 2007 at 01:53 UTC | |
by adam_blackice (Acolyte) on Apr 09, 2007 at 03:28 UTC | |
by f00li5h (Chaplain) on Apr 09, 2007 at 03:53 UTC | |
by adam_blackice (Acolyte) on Apr 09, 2007 at 18:01 UTC | |
by f00li5h (Chaplain) on Apr 10, 2007 at 01:21 UTC |