Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <form name="data" method="post">
- <textarea name="ho" cols='50' rows='12' placeholder="Input Your Text"></textarea><br><br>
- <input type="submit" name='hi' value="GASCOK">
- <input type="reset" value="CANCEL">
- </form>
- </center>
- <?php
- error_reporting(E_ALL ^ ( E_NOTICE | E_WARNING ));
- $ya=$_POST['hi'];
- $co=$_POST['ho'];
- $pecah=explode("\r\n",$co);
- if($ya){
- $hasil = array_unique($pecah);
- echo "<center><textarea cols='50' rows='12'>".implode ($hasil,"\n")."</textarea>";
- }
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment