Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use CGI qw/:standard/; print header, start_html('Mothership Connection'), h1('Mothership Connection Configuration'), start_form, "Server Name ",textfield('name'),p, "IP Address ",textfield('ip'),p, "Port Number",textfield('port'),p, checkbox_group(-name=>'proto', -values=>['tcp','udp']),p, "Description",textfield('desc'),p, submit('submit'), end_form, hr; open (CFGFILE,">>mothership.cfg") || die; if (param()) { print CFGFILE (param('name')),",", (param('ip')),",", (param('port')),",", (param('proto')),",", (param('desc')), "\n"; } close CFGFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: field deletion after a submit
by grep (Monsignor) on Apr 29, 2003 at 04:01 UTC | |
|
Re: field deletion after a submit
by pzbagel (Chaplain) on Apr 29, 2003 at 03:50 UTC | |
by Anonymous Monk on Apr 29, 2003 at 04:22 UTC |