deryni has asked for the wisdom of the Perl Monks concerning the following question:
Here's where the problem is, I have yet to figure out a good way to pass all the original info through
to the next instance of the script. I thought that I could read out all the array elements into the form
as hidden elements but I hope that there is an easier way to do it.
I also thought of reading the arrays into a text file but the file never got written into. I was using this code:
This code didn't touch the file at all (i.e. not only not written into but not clobbered either).open ORGIDATA, ">orig" || die "Couldn't open! $!"; for (my $k = 0; $k < @classid; $k++) { if ($classid[$k] != $classid[$k-1]) { print ORIGDATA $classid[$k], " ", @{$class[$k]}, " ", $location +[$k], " ", $credits[$k], "<br>\\ n"; } } close ORGIDATA;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Keeping form information in CGI
by tachyon (Chancellor) on Jul 03, 2001 at 11:21 UTC | |
|
Re: Keeping form information in CGI
by Zaxo (Archbishop) on Jul 03, 2001 at 11:59 UTC | |
|
Re: Help already received and request for more
by deryni (Beadle) on Jul 03, 2001 at 13:40 UTC | |
by wardk (Deacon) on Jul 03, 2001 at 17:48 UTC | |
by deryni (Beadle) on Jul 04, 2001 at 00:42 UTC | |
by wardk (Deacon) on Jul 04, 2001 at 02:04 UTC | |
by deryni (Beadle) on Jul 04, 2001 at 12:43 UTC | |
| |
|
Re: Keeping form information in CGI
by rrwo (Friar) on Jul 03, 2001 at 20:11 UTC |