MrLogin404

[PHP] Separator Text

Dec 20th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <form method='post'>
  2. <textarea name='sites' cols='50' rows='12' placeholder="Input Your Text" ></textarea><br><br>
  3. <td><input type="text" style="width:30%" " name="apa" placeholder="Mau Dipisah Dari Mana"><br><br>
  4. <input type='submit' name='go' value='HAJAR!!!'>
  5. <input type='reset' value='CANCEL'><br>
  6. </form></center>
  7. <?php
  8. error_reporting(0);
  9. set_time_limit(0);
  10. $ya=$_POST['go'];
  11. $co=$_POST['sites'];
  12. $apa=$_POST['apa'];
  13.  
  14. if ($ya){
  15. $go=explode("\r\n",$_POST['sites']);
  16. echo"<center><textarea cols='50' rows='12'>";
  17. foreach($go as $url){
  18. $pisah = explode($apa,$url);
  19. echo "\r$pisah[0] ";
  20. }
  21. echo"</textarea>";
  22. echo"<textarea cols='50' rows='12'>";
  23. foreach($go as $url){
  24. echo "\r$pisah[1] ";
  25. }
  26. }
  27. echo" </textarea>";
  28. ?>
Add Comment
Please, Sign In to add comment