Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: inserting HTML formatting

Quote Reply
Re: inserting HTML formatting In reply to
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
Subject Author Views Date
Thread inserting HTML formatting rholmin 13645 Nov 7, 1999, 7:47 PM
Post Re: inserting HTML formatting
Alex 13443 Nov 7, 1999, 9:20 PM
Post Re: inserting HTML formatting
Digital Concepts 13451 Nov 7, 1999, 10:06 PM
Post Re: inserting HTML formatting
rholmin 13478 Nov 8, 1999, 7:07 AM
Post Re: inserting HTML formatting
pugdog 13452 Nov 8, 1999, 10:42 AM
Post Re: inserting HTML formatting
rholmin 13442 Nov 8, 1999, 5:04 PM
Post Re: inserting HTML formatting
rholmin 13466 Nov 8, 1999, 5:14 PM
Post Re: inserting HTML formatting
Alex 13464 Nov 8, 1999, 7:23 PM
Post Re: inserting HTML formatting
rholmin 13469 Nov 9, 1999, 7:17 PM
Post Re: inserting HTML formatting
hostglobal 13453 Dec 7, 1999, 5:14 PM
Post Re: inserting HTML formatting
hostglobal 13459 Dec 7, 1999, 5:33 PM
Post Re: inserting HTML formatting
Alex 13455 Dec 9, 1999, 4:16 PM
Thread Re: [rholmin] inserting HTML formatting
cdkrg 13309 Oct 5, 2003, 9:54 PM
Thread Re: [cdkrg] inserting HTML formatting
Andy 13341 Oct 6, 2003, 1:21 AM
Post Re: [Andy] inserting HTML formatting
cdkrg 13319 Oct 6, 2003, 1:27 AM