Jump to content

storing longtext in mysql using form field is not working


anita999

Recommended Posts

I have a form which has the following part defined:

 

<tr>

  <td> Description</td>

  <td><textarea name="mydescription" cols="50" rows="5">

<?php echo $fields[mydescription]?></textarea></td>

</tr>

 

 

Now, when I enter in some sentences into the textarea, and do a submit, I then extract the value and insert into the mysql db.  The field in the DB is defined as a longtext.

 

The problem is that this seems to only work if my sentence has about 15 words (approx 2 rows).  If I go beyond 15 words, it won't store it.  I don't seem to be getting any errors output either.  I was thinking that perhaps the form itself is causing the issue since when entering in the data, it does a wrap around.

 

Note if I do 15 words or less, it is stored properly in the DB.

 

Any ideas on how this should be done?

 

Thanks

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.