I have no experience in programming but i want to modify something in a cgi program.
I have a textarea for users to enter their description. After they have submitted the form, the program use the following lines to print the data to the database file
$newline = join ("\|",0,0,$fields{'description'},$fields{'pass'},$new_id);
$newline .= "\n";
But the data file is totally messed up when the user press enter in the description fields.
How to modify it so that each record can be printed on only one line.
I have a textarea for users to enter their description. After they have submitted the form, the program use the following lines to print the data to the database file
$newline = join ("\|",0,0,$fields{'description'},$fields{'pass'},$new_id);
$newline .= "\n";
But the data file is totally messed up when the user press enter in the description fields.
How to modify it so that each record can be printed on only one line.