replace more than 1 space in a row with a  
OR, when outputing their text place a <pre> tag around it

Andrew
  ----- Original Message ----- 
  From: Stephen 
  To: PHP List 
  Sent: Monday, December 09, 2002 9:25 PM
  Subject: [PHP] Spaces


  I have a article submission thing where the user types in whatever they want. I've 
already made it so that when the user pushes enter, it saves it as a <br> for HTML but 
how would I do this for spaces also? I'm storing the contents in a MySQL database...

  Thanks,
  Stephen Craton
  http://www.melchior.us

  "What is a dreamer that cannot persevere?" -- http://www.melchior.us


------------------------------------------------------------------------------


  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to