function sendURL() { var form = document.formular; location.href = "script.pl?name=" + form.name.value + ""; }