Formatting lost when extracting data from table
When the text is entered into a textarea field it is formatted with paragraphs. However this is lost when extracting the data.
Solution proposed elsewhere is that I use addslashes() on the way in, and then stripslashes() on the way out.
Well I'm not sure how to do that, but does anyone else have any ideas. This must be a common issue.
On the way in:
if (empty($_POST['report'])) {
$errors[] = 'Please enter a match report before submitting the match report.';
}else{
$report = addslashes ($_POST['report']);
}
On the way out:
$report = stripslashes($_REQUEST['report']);
Cheers.
Subject
Written By
Posted
Formatting lost when extracting data from table
June 19, 2009 04:54AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.