shortysbest Posted May 22, 2010 Share Posted May 22, 2010 title says it all Link to comment https://forums.phpfreaks.com/topic/202555-setting-up-mysql-databse-and-php-form-to-have-2500-characters/ Share on other sites More sharing options...
Cagecrawler Posted May 22, 2010 Share Posted May 22, 2010 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>. Link to comment https://forums.phpfreaks.com/topic/202555-setting-up-mysql-databse-and-php-form-to-have-2500-characters/#findComment-1061866 Share on other sites More sharing options...
shortysbest Posted May 22, 2010 Author Share Posted May 22, 2010 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. Link to comment https://forums.phpfreaks.com/topic/202555-setting-up-mysql-databse-and-php-form-to-have-2500-characters/#findComment-1061868 Share on other sites More sharing options...
Cagecrawler Posted May 22, 2010 Share Posted May 22, 2010 Sounds like you php.ini value for post_max_size is set too low. Try increasing it. Link to comment https://forums.phpfreaks.com/topic/202555-setting-up-mysql-databse-and-php-form-to-have-2500-characters/#findComment-1061870 Share on other sites More sharing options...
shortysbest Posted May 22, 2010 Author Share Posted May 22, 2010 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. Link to comment https://forums.phpfreaks.com/topic/202555-setting-up-mysql-databse-and-php-form-to-have-2500-characters/#findComment-1061876 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.