OK, I am close but not quite there yet...
From the help above I have been able to export my data from my database to a php page and the text is retainining line breaks. Following is an example of what the data looks like:
File 1
PHP Code:
while ( $row= mysql_fetch_array($result) ) {
$test = nl2br($row['test']);
}
echo $test;
Will give me a result that looks like:
Quote:
One
Two Three
Four Five Six
|
Now what I need to do is create a page that will allow me to edit my values in my script as follows:
File 1 (Later in the code)
PHP Code:
<form action="updatetest.php" method="post">
<textarea rows="10" cols="30" name="updatetest" wrap="physical"><?php echo $test ?></textarea><br />
<INPUT type="submit" value="Update Test"> <INPUT type="reset">
</form>
So, to finish this I know I need to create a new PHP file named updatetest.php and that the value that I will be receiving is $updatetest.
What I can not figure out for the life of me is what do I need to do to get the output variable posted from in File #1 to retain the line breaks (\n) when the gets to my second file so that my second file can do a mysql UPDATE....
The line breaks are critical for my project as the values I am updating are lists of items.
Thanks for any advise!