Hello,
I have a problem with a cgi script for ecards. I have the following error message:
Use of uninitialized value at Card.pm line 131.
Here is the part of code where I have the error:
(line 131 is $frag .= "<input type=hidden name=" . $_ ." value=\"" . $this->{in}->{$_} . "\">\n";):
{
my $this = shift;
my $frag;
foreach (@{$this->{params}})
{
$frag .= "<input type=hidden name=" . $_ ." value=\"" . $this->{in}->{$_} . "\">\n";
}
$this->{in}->{frag} = $frag;
$this->write_page('preview.tpl',$this->{in});
}[/font]
Could you please help me.
Thanks a lot.
I have a problem with a cgi script for ecards. I have the following error message:
Use of uninitialized value at Card.pm line 131.
Here is the part of code where I have the error:
(line 131 is $frag .= "<input type=hidden name=" . $_ ." value=\"" . $this->{in}->{$_} . "\">\n";):
Code:
sub preview {
my $this = shift;
my $frag;
foreach (@{$this->{params}})
{
$frag .= "<input type=hidden name=" . $_ ." value=\"" . $this->{in}->{$_} . "\">\n";
}
$this->{in}->{frag} = $frag;
$this->write_page('preview.tpl',$this->{in});
}
Could you please help me.
Thanks a lot.