Advertisement
RieqyNS13

Untitled

Jul 11th, 2012
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.06 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  4. <meta name="author" content="RieqyNS13"/>
  5. <title>Testing</title>
  6. <style type="text/css">
  7. body{
  8. background-color:#000000;
  9. }
  10. textarea{
  11. background-color:#000000;
  12. color:#FF0000;
  13. }
  14. input{
  15. background-color:#000000;
  16. color:#FF0000;
  17. }
  18. fieldset{
  19. color:#7FFF00;
  20. font-family:"Courier New";
  21. font-size:10px;
  22. border:1px solid;
  23. width:373px;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <br>
  29. <form method=POST action=<?PHP $_SERVER['PHP_SELF'];?>>
  30. <fieldset>
  31. <legend>Isi Input</legend>
  32. <textarea name="txArea" cols=50 rows=20></textarea>
  33. </fieldset>
  34. <input type=submit name="btnSubmit" value="Generate"><br>
  35. </form>
  36. </body>
  37. <?php
  38. $result = $_POST['txResult'];
  39. if (isset($_POST['txArea'])){
  40. $str = $_POST['txArea'];
  41. $exp = explode("\n", $str);
  42. $count = count($exp);
  43. for($i=0; $i<$count; $i++){
  44. $result = "Hello". $exp[$i]. "Problem ? \n";
  45. }
  46. echo "<fieldset><legend>Output :</legend><textarea name=txR cols=50 rows=20 readonly=YES>$result</textarea></fieldset><br>";
  47. }
  48. ?>
  49. </textarea>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement