Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (23 sloc) 742 Bytes
<!DOCTYPE html>
<title>URL shortener</title>
<meta name="robots" content="noindex, nofollow">
<form method="post" action="shorten.php" id="shortener">
<label for="longurl">URL to shorten</label> <input type="text" name="longurl" id="longurl"> <input type="submit" value="Shorten">
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$(function () {
$('#shortener').submit(function () {
$.ajax({data: {longurl: $('#longurl').val()}, url: 'shorten.php', complete: function (XMLHttpRequest, textStatus) {
return false;
Something went wrong with that request. Please try again.