Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: PHP  |  size: 0.44 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <html>
  2. <head>
  3. <title>Title of the document</title>
  4. </head>
  5. <?php
  6.         function remove($string)
  7.         {
  8.                 $string = str_replace(",", "<br />", $string);
  9.                 return $string;
  10.         }
  11.  
  12.         if($_POST)
  13.         {
  14.                 echo remove($_POST['keywords']);
  15.                 echo "<br />";
  16.                 echo "<br />";
  17.                 echo $_POST["keywords"];
  18.         }
  19.  
  20. ?>
  21. <form method="post" action="">
  22. <textarea name="keywords" cols="40" rows="5">
  23. </textarea><br>
  24. <input type="submit" value="Submit" />
  25. </form>