<?php

// From Danltn.com - By Danltn - The message must remain here for use - (this message is invisible to visitors)

if(isset($_POST['con'])) {

$con htmlentities($_POST['con']);
$con str_replace("\n"," ",$con);
$con explode(" ",$con);
$con array_unique($con);
foreach(
$con as $word) { echo stripslashes($word)." "; }
echo 
"<br /><br />";

}  
?>

<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
<center>
<textarea name="con" style="padding-left:0px;margin-left:0px;width:80%;height:400px;" rows="10">
<?php if(isset($_POST['con'])) { echo htmlentities(stripslashes($_POST['con'])); } ?>
</textarea><br />
<input type="submit" value="Remove duplicate words" /></center>
</form>

<?php  ?>