Treehunter has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for the help, I figured out the problem.use strict; use CGI qw(:standard); print header, print start_html("test"), hr(); if (param("name")) { my $name = param("name"); #the problem seems to be here i have tried print end_html() #that didn't work eather any ideas open (TMP, ">textfile"); print TMP $name; close (TMP); } else { print start_form(); print p("Type your name", textfield("name")); print p(submit("Submit")); } print hr(); print end_html();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI, write to file
by brian_d_foy (Abbot) on Feb 27, 2005 at 23:48 UTC | |
|
Re: CGI, write to file
by chas (Priest) on Feb 27, 2005 at 23:58 UTC | |
by Joost (Canon) on Feb 28, 2005 at 10:44 UTC | |
|
Re: CGI, write to file
by Tanktalus (Canon) on Feb 28, 2005 at 02:04 UTC | |
|
Re: CGI, write to file
by artist (Parson) on Feb 27, 2005 at 23:56 UTC | |
|
Re: CGI, write to file
by cbrandtbuffalo (Deacon) on Feb 28, 2005 at 01:20 UTC | |
|
Re: CGI, write to file
by larryp (Deacon) on Feb 27, 2005 at 23:40 UTC |