Thanks to all it works great.
The only area I now need newlines for a specific field is where the user enters information in a textarea box on my form:
Enter the city or cities
and the person could enter several cities in the textbox area where they type in the city and hit the enter key and then type in another city such as this in the textbox:
San Francisco
San Diego
Currently that entry will show up as this on my web page results:
City: San Francisco San Diego
Anyway to have just the textarea entries show up like this with a newline after each city entered?
City: San Francisco
San Diego
Here is my attempt:
foreach $value (param($field))
{
if($field !~ /city/)
{
$fetch_data .= "<tr><td>$field:</td><td>$value</td></tr>\n";
}
elsif($field =~ /city/)
{
$textareaField .= "City\:\t$value\n\n<br\>";
}
}
}
print header, <<"EOF";
<HTML>
<BODY>
<table>
$fetch_data
$textareaField
</table>
----
<TEXTAREA name="city" ROWS="4"></TEXTAREA>