Limiting Strings in PHP

Miscellaneous Forums/General Discussion/Limiting Strings in PHP

To fix your comment box problem, instead of doing this:
}

  ?>
  <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  <h2>Add a Comment</h2>
  <p><b>Name</b><br><input type="text" name="name" size="25"></p>
  <p><b>Comment</b><br><textarea rows="8" cols="20"></textarea></p>
  <div align="center"><input type="submit" name="submit" value="Post"></div>
  </form>
  <?php  

} 
?>


Do this:
}
  
  echo '
  <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  <h2>Add a Comment</h2>
  <p><b>Name</b><br><input type="text" name="name" size="25"></p>
  <p><b>Comment</b><br><textarea rows="8" cols="20"></textarea></p>
  <div align="center"><input type="submit" name="submit" value="Post"></div>
  </form>  
  ';

} 
?>