Buongiorno,
qualcuno sa dirmi qual'è il problema di questa funzione elementare? Proprio non capisco.
codice:
<html>
<head>
<title>editor</title>
<script>
function f(){
	
	var a = document.getElementById('nome').value;
	
	alert(a);
}
</script>
</head>
<body>
<?php


echo "<form method=\"post\" name=\"form_link\" onSubmit=\"f()\">";

echo "<input type=\"text\" name=\"nome\">";
echo "<input type=\"text\" name=\"link\">";
echo "<input type=\"submit\" name=\"il_link\" value=\"INVIA\">";
echo "</form>";
?>
</body>
</html>
Grazie, Angelo