<html>
<body bgcolor="#fad888">
<form>
<center>
<input type="text" name="url" value="<? echo "$url"; ?>" />
<input type="submit" />
</center>
</form>
<?
$url = $_REQUEST[url];
if ( isset($url) )
{
$array = parse_url("$url");
echo "<pre>";
print_r($array);
echo "</pre>";
}
?>
</body>
</html>