Very simple thing. I sometimes want to access urban dictionary but it is blocked where I am. Given a form like
<form method="get" action="<?PHP echo htmlspecialchars($_SERVER['PHP_SELF']); ?>">
<input type="text" name="what" value="" />
<input type="submit" />
</form>
what do I need to add to have it return the content of the entry from urban dictionary for value entered? For example using CURL or getFile or something as simple as possible
Update:
This works!
<form method="get" action="">
<input type="text" name="what" value="" />
<input type="submit" />
</form>
<?PHP
$what = isSet($_GET["what"])?htmlentities($_GET["what"]):"";
echo file_get_contents("http://www.urbandictionary.com/define.php?term=".urlencode($what));
?>