Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Copied Text will not display in textarea
Old 05-21-2009, 05:30 PM Copied Text will not display in textarea
Junior Talker

Posts: 1
Name: John Hayter
Trades: 0
Cannot find solution. If I copy and paste text into my text area with a hyphen in it and submit the form using post and then return to edit the post the text is not displayed in the text area however it is displayed on the webpage (not in a textarea).

Any idea why this happening? Below is the code for the text area.

<td><?php
$dn =$row_prop->pdescrip;
$dn = str_replace("<br>", "\r\n", $dn);

$dn = htmlentities($dn,ENT_QUOTES,"UTF-8");
echo "<textarea name='descrip' rows='15' style='width:525' value=\"$dn\">$dn</textarea>"; ?></textarea></td>
john@landbroker is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-21-2009, 05:42 PM Re: Copied Text will not display in textarea
Novice Talker

Posts: 5
Trades: 0
you shouldn't put $dns in value of textarea because textarea doesn't use value for text input.


This below code should work:
<table><tr>
<td><?php
$dn =$row_prop->pdescrip;
$dn = str_replace("<br>", "\r\n", $dn);
$dn = htmlentities($dn,ENT_QUOTES,"UTF-8");
echo "<textarea name='descrip' rows='15' style='width:525'>$dn</textarea>";
?>
</td></tr></table>
aofrozen is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Copied Text will not display in textarea
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16134 seconds with 12 queries