PHP קוד:
<?php
if(isset($_POST['url'])) {
// Get the form value
$url = $_POST['url'];
// Get the last code
$code = end(explode("=", $url));
echo "<h1>". $code . "</h1><br />";
}
?>
<html dir="rtl">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windos-1255">
</head>
<body>
<form name="myForm" action="" method="post">
הכנס את הURL:<br />
<input type="text" name="url" /><br />
<input onClick="document.myForm.submit();" type="image" src="http://www.noproblem.co.il/Resources/Global/Image/Landing/ProfessionCard/btn.send.jpg" />
</form>
</body>
</html>
תהנה