Try:
# Validate the form input..
$rec = &cgi_to_hash ( $in );
$in->{Description} =~ s/\n/<BR>/g;
$id = $val->add_record ( $rec );
if ($id) {
Looks like it should work. You can't apply reg exp to $in->param() like that. You need to do (it's ugly):
$val = $in->param('Description');
$val =~ s/\n/<BR>/g;
$in->param('Description', $val);
Hope this helps,
Alex
# Validate the form input..
$rec = &cgi_to_hash ( $in );
$in->{Description} =~ s/\n/<BR>/g;
$id = $val->add_record ( $rec );
if ($id) {
Looks like it should work. You can't apply reg exp to $in->param() like that. You need to do (it's ugly):
$val = $in->param('Description');
$val =~ s/\n/<BR>/g;
$in->param('Description', $val);
Hope this helps,
Alex