sebastiansthlm Posted March 18, 2007 Share Posted March 18, 2007 My client wanted to be able to update her website by through a html textfield. It seems to be limited to 1000 chars. Anybody have a clue why, and how to change it? The code is very simple; ... <textarea rows="9" name="message" cols="45"></textarea> ... $file = "nyheter.txt"; $msg = $_POST['message']; $fh = fopen($file, 'w'); fwrite($fh, $msg); Sebastian Link to comment https://forums.phpfreaks.com/topic/43288-update-website-through-textarea-limited-to-1000-chars/ Share on other sites More sharing options...
Warptweet Posted March 18, 2007 Share Posted March 18, 2007 That should work, whats wrong? I highly doubt it would change anything, but maybe try putting $msg = $_POST['message']; BEFORE the $file = "nyheter.txt"; Link to comment https://forums.phpfreaks.com/topic/43288-update-website-through-textarea-limited-to-1000-chars/#findComment-210199 Share on other sites More sharing options...
shaunrigby Posted March 18, 2007 Share Posted March 18, 2007 where is the text stored? if its a db check the char cpunt (normally found in brackets (())) Link to comment https://forums.phpfreaks.com/topic/43288-update-website-through-textarea-limited-to-1000-chars/#findComment-210224 Share on other sites More sharing options...
AndyB Posted March 19, 2007 Share Posted March 19, 2007 where is the text stored? if its a db check the char cpunt (normally found in brackets (())) @ shaunrigby: The OP is quite sure it's in a text file .. at least that's the code that was posted. Link to comment https://forums.phpfreaks.com/topic/43288-update-website-through-textarea-limited-to-1000-chars/#findComment-210239 Share on other sites More sharing options...
sebastiansthlm Posted March 20, 2007 Author Share Posted March 20, 2007 Thanx for the tip warptweet. Didn't make a difference though =( I'm storing the text in a text file... Link to comment https://forums.phpfreaks.com/topic/43288-update-website-through-textarea-limited-to-1000-chars/#findComment-211155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.