Jump to content

Whats the best way? Text upload


spires

Recommended Posts

Hi

 

I've been uploading my textarea content into my database useing

a technique that works.

 

But, i was wondering, Is there a better way.

 

 

I upload the text using;

$description=addslashes(nl2br($_POST['description']));

<textarea name="description" cols="40" rows="7" wrap="PHYSICAL" id="description" value="'.$row['description'].'">'.strip_tags($description, '<b><br /><i>').'</textarea>

 

I display the content using:

$description = stripslashes($row['description']);
<TABLE>
<TR>
<TD>
<span class="pro_main_text">'.$description.'</span><br>
</TD>
</TR>
</TABLE>

 

 

Doing it this way always seems to be a problem when editing the

HTML.

 

 

So, Is there a better way??

 

 

Thanks

 

Jeff

:)

Link to comment
https://forums.phpfreaks.com/topic/52126-whats-the-best-way-text-upload/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.