Jump to content

Setting up mysql databse and php form to have 2500+ characters.


shortysbest

Recommended Posts

A bit more information would be useful.  What do you need the database/form to do for example?

 

Assuming by characters you mean text characters, long strings are best stored in a TEXT (or one of its subtypes) field and displayed in a form using <textarea>.

A bit more information would be useful.  What do you need the database/form to do for example?

 

Assuming by characters you mean text characters, long strings are best stored in a TEXT (or one of its subtypes) field and displayed in a form using <textarea>.

 

I have a section on my clients website that is called "about us" and it has several paragraphs in it. I currently have the database row set up with longtext (and have tried multiple tags) and there is no input size limit on the text area either, however when i click save (to update the database) it will not update it at all (not even cut off text as if it were too long) it just comes back as, well nothing and doesn't update the database. I have this problem with multiple text areas. It does update it if i bring it down to just a few lines of text. I can also update it directly on the database (inserting into the field on the database) and it saves and everything just fine, displays all of the text and everything. It's just the updating from the website that's not working correctly with a large amount of text and i cannot find a way to fix this.

Sounds like you php.ini value for post_max_size is set too low.  Try increasing it.

 

that did help, just cannot post all of it still, just post_max_size? its set at 2047M atm. Ik there's a max but what is it? had to reinstall it last time because i broke it lol.

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.