0 replies
  • WEB DESIGN
  • |
So I have a form set to gather information people want to use on their site. But I have a glitch. When they hit the enter button in the form to make a new line it inserts a <br> into the form. BUT here is the problem. While that does indeed create a new line it will also create 2 new lines if they edit the form. How do I fix this? This is a snip of the code:

/* string replace bad characters */
$badCharacters = array("'", "'", "'", """, """, "é", Chr(13));
$replaceCharacters = array(''', '&lsquo;', '&rsquo;', '&ldquo;', '&rdquo;', '&eacute;', '<br>');
#glitch

Trending Topics