Re: posting information from a textarea
| From: | Brad Bonkoski | Date: | Thu, 06 Jul 2006 16:59:23 +0000 |
| Subject: | Re: posting information from a textarea | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42174@lists.php.net to get a copy of this message | ||
stripslashes should not be needed...
if anything addslashes() may be needed if you have single quotes in the text area.
I would say step 1 is to echo out your insert query to the page before you even excute the insert, to verify the query, and that you are getting the proper information from the form.
-B
Dave W wrote:
I seem to be having a problem posting text from a text area. I have a form that posts data into a database and there are input fields which seem to post the data fine. I know this because the entry is changing in the database, but the text area text doesn't seem to be posting. I double checked to make sure i got the names right, but it still doesn't seem to be working. Before I put it into the database I'm using stripslashes. I thought that might of been the problem and I changed it to trim, but that didn't work. In the database, the field that I'm putting it into is a longtext type with fulltext.