I have 2 sets of php scripts.
The first stores information from a form into a csv file
[php]
<?php
$mm = $_POST['mm'];
$dd = $_POST['dd'];
$yy = $_POST['yy'];
$name = $_POST['name'];
$comment = $_POST['comment'];
$lines = file('datafeed/filetoread.csv');
$fp = fopen("datafeed/filetoread.csv", "w+");
$header = array_shift($lines);
$savestring = $header . $mm . " " . $dd . " " . $yy . " " . $name . " " . $comment . "\r\n";
fwrite($fp, stripslashes($savestring));
foreach($lines as $line) fwrite($fp, "$line");
fclose($fp);
echo "
Your data has been saved
";
?>
[/php]
The second reads the csv file and displays the content on a webpage.
Somewhere in here I need support for papragraphs for one of my form feids that collects users comments in which the user will sometime use multiple paragraphs.
Thank you in advance and any help is much appreciated