Gossamer Forum
Home : Products : DBMan : Discussions :

Re: Combining Fields

Quote Reply
Re: Combining Fields In reply to
OK,
I accually went out and got 2 books for this, 1 on perl, & 1 on cgis. I was looking at different form-mail scrips, and I was wondering is this world work...
Instead of

foreach $col (@db_cols) { print MAIL "$col$rec{$col}|"; } close (MAIL);

Use

print MAIL "$field1{'field1'}|"; "$field2{'field2'}|"; "$field3{'field3'}"; "$field4{'field4'}"; } close (MAIL);

This would give output like.....field1|field2|field3field4

I think, with | (pipe) between 1,2, and 3, but not between 3 & 4, is this correct? Or am I going off on a tangent here?
Anyway thanks for your help,
Ben


Subject Author Views Date
Thread Combining Fields bjblackmore 4578 Oct 12, 2000, 9:17 AM
Thread Re: Combining Fields
AstroBoy 4465 Oct 12, 2000, 3:24 PM
Thread Re: Combining Fields
bjblackmore 4450 Oct 13, 2000, 1:11 AM
Thread Re: Combining Fields
AstroBoy 4448 Oct 13, 2000, 1:41 AM
Thread Re: Combining Fields
bjblackmore 4454 Oct 13, 2000, 2:18 AM
Thread Re: Combining Fields
AstroBoy 4446 Oct 13, 2000, 4:33 AM
Post Re: Combining Fields
bjblackmore 4445 Oct 16, 2000, 4:33 AM
Post Re: Combining Fields
bjblackmore 4428 Oct 16, 2000, 9:04 AM