adam_blackice has asked for the wisdom of the Perl Monks concerning the following question:
and th action script is#!/usr/bin/perl -w use strict; print "Content-type: text/html\n\n"; print "<html><head><title>Our First HTML Perl form</title></head>"; print "<body>"; print"<form method='post' action='action1.pl'>"; print"name: <input type='text' name='name' size='25'><br>"; print"email: <input type='text' name='email' size='25'><br>"; print"<input type='submit' value='Submit'>"; print"</form>"; print"</body></html>";
so when i run this from the browser first it shows me the#!/usr/bin/perl use cgi; $cgi=new CGI; print $cgi->header(); print $cgi->start_html("Action page"); print $cgi->param('name'), <br>; print $cgi->param('email'); print $cgi->end_html();
#!/usr/bin/perl use cgi; $cgi=new CGI; print $cgi->header(); print $cgi->start_html("Action page"); print $cgi->param('name'), <br>; print $cgi->param('email'); print $cgi->end_html();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why this simple cgi script returns error ? !
by ikegami (Patriarch) on Apr 04, 2007 at 21:00 UTC | |
by adam_blackice (Acolyte) on Apr 04, 2007 at 23:42 UTC | |
by fenLisesi (Priest) on Apr 05, 2007 at 06:17 UTC | |
|
Re: why this simple cgi script returns error ? !
by Joost (Canon) on Apr 04, 2007 at 20:55 UTC | |
|
Re: why this simple cgi script returns error ? !
by Trizor (Pilgrim) on Apr 04, 2007 at 20:56 UTC | |
|
Re: why this simple cgi script returns error ? !
by robot_tourist (Hermit) on Apr 05, 2007 at 11:47 UTC |