Note that there are some explanatory texts on larger screens.

plurals
  1. POTextarea input from HTML is cut off
    primarykey
    data
    text
    <p>I have made a form using a textarea tag which then truncates the text into a file, but the input is cut off after a certain amount of characters and sometimes after a closing unordered list tag. What could be the cause?</p> <p>The form:</p> <pre><code>&lt;form name='input' method='post' action=''&gt; &lt;textarea cols=75 rows=17 name='desc'&gt;&lt;/textarea&gt; &lt;/form&gt; </code></pre> <p>Here's how I insert the text (stored in the $desc variable) into the file:</p> <pre><code>$file-&gt;fileTruncate($parent2."/projectfiles/".$data[ID]."/description.html", $desc); </code></pre> <p>Some of my fileHandle class, accessed by the $file object:</p> <pre><code>function fileTruncate($path, $write){ if(file_exists($path)){ $this-&gt;fp = fopen($path, 'w'); fwrite($this-&gt;fp, $write); fclose($this-&gt;fp); return true; }else{ return false; } } </code></pre> <p>Here's how I display the text, stored in the $desc_contents variable ($file->fileContents basically gets the contents of the given file, "all" means it gets the entire file):</p> <pre><code> $file = new fileHandle; echo "&lt;div id='project_description' style='overflow:scroll;'&gt;"; echo "&lt;div id='project_description_text'&gt;"; echo "&lt;br/&gt;".$desc_contents = $file-&gt;fileContents("projectfiles/$projectid/description.html", "all"); echo "&lt;/div&gt;"; echo "&lt;/div&gt;"; </code></pre> <p>Here's an example of the text which has been cut off:</p> <p><h1> XaocRPG </h1></p> <h2> Current Features: </h2> <p>Players can gain experience and level up when fighting creatures! Check your stats or another players! (Requires permission: XaocRPG.Commands.Info.Others) Set the experience of entities with /setentexp! Reset all players or just one as an admin! /xrpg reset! </p> <h2>Planned Features </h2> <ul> <li>Leveling for skills and abilities to replace such plugins as McMMO/MoxieSkills! </li> <li>Full Admin Command Set! </li> <li>Abilities that can be learned by leveling skills! </li> <li>Full permission support. </li> <li>Multiworld support. </li> <li>Economy Support. (SkEconomy and Vault) </li> <li>Suggestions? I\'m open to them! </li> </ul> <p><em>Some other text</em></p> <p><em>More invisible text</em></p> <p>The italic text should be visible and in the file, but isn't. I checked whether or not it is actually truncated to the file, but it isn't, therefore there's no error with the actual displaying of the text.</p> <p>Any help is appreciated</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload