beretboy has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use CGI qw( param header); $q = new CGI; my $tela = $q->param('tela'); my $yoken = $q->param('yoken'); if ($tela eq undef) { print header; print <<SEIFORM; <HTML> <TITLE>seisei</TITLE> <body bgcolor="black" background="line.gif" alink="#ff9900" link="#ff9 +900" vlink="#ff9900" text="#ff9900"> <form action="seisei.cgi" method="get" name="seisei"> Tela:<input type="text" value="wiki" name="tela" align="top" maxlength="25" size="77"><br> <textarea name=yoken cols=70 rows=12>void</textarea> <BR> <input type="submit" value="kuppuku" align="middle"> </BODY> </HTML> SEIFORM } else { print header; print <<SUCCESS; <HTML> <TITLE>daiseikou</TITLE> <body bgcolor="black" background="line.gif" alink="#ff9900" link="#ff9 +900" vlink="#ff9900" + text="#ff9900"> <CENTER><H1>daiseikou</H1></CENTER> </BODY> </HTML> SUCCESS open(TELA, ">$tela.tela"); print TELA "$yoken"; print "$yoken"; }
Edit ar0n -- fixed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File writing script (taint mode problem?)
by kal (Hermit) on Jan 21, 2002 at 02:42 UTC | |
|
Re: File writing script (taint mode problem?)
by strat (Canon) on Jan 21, 2002 at 02:59 UTC | |
|
Re: File writing script (taint mode problem?)
by chromatic (Archbishop) on Jan 21, 2002 at 11:44 UTC |