VanGans

add awal/akhir

Oct 9th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <html>
  2. <form name="data" method="post">
  3. <textarea name="ho" cols='50' rows='12' placeholder="Input your text here"></textarea><br><br>
  4. <input  style="width:30%" name="suffix" placeholder="Input your prefix"><br>
  5. <input  style="width:30%"  name="prefix" placeholder="Input your suffix"><br><br>
  6. <input type="submit" name='hi' value="GASCOK!!">
  7. </form>
  8. </center>
  9. <?php
  10. $suf    =$_POST['suffix'];
  11. $pre    =$_POST['prefix'];
  12. $url    =$_POST['ho'];
  13. $gas    =$_POST['hi'];
  14.  
  15. if($gas){
  16. $e=explode("\r\n",$url);
  17.     echo"<center><textarea cols='50' rows='12'>";
  18.     foreach($e as $urls){
  19.     echo ($suf).($urls).($pre).("\n");
  20.     }
  21. }
  22. echo" </textarea>";
  23. ?>
  24. </html
Advertisement
Add Comment
Please, Sign In to add comment