Quote Originariamente inviata da cavicchiandrea Visualizza il messaggio
Non proprio
codice:
<script language='javascript' type="text/javascript">
function mostra()
{
var hostname = document.getElementById('hostname');

document.getElementById("risposta").innerHTML = hostname.value+' '+gateway.value;
}
</script>
body:
<div id="risposta"></div>
Se posso, studiati una guida base che trovi in rete o qui html.it

Grazie per le dritte...qualcosa ho capito, ma evidentemente non del tutto...visto che non mi funziona...potresti dirmi gentilmente dove sbaglio?

codice:
<html>
<head>


<script language='javascript' type="text/javascript">
function mostra()
{
var hostname = document.getElementById("hostname").value;
var gateway = document.getElementById("gateway").value;




document.getElementById("risposta").innerHTML = "set hostname" +hostname+ "set gateway" +gateway+;
}
</script>






</head>


<body>
<form method="get" name="dati" action="risposta.html">
	<table align="left">
		<tr>
			<td>HOSTNAME </td>
			<td><input type='text' id='hostname' /> </td>
		</tr>
		
		<tr>
			<td>GATEWAY </td>
			<td><input type='text' id='gateway' /> </td>
		</tr>
		<tr>
			<td ><input type="submit" value="invia" onClick="javascript:mostra()"></td>
		</tr>
	</table>
</form>








<div id="risposta">


</div>




</body>
</html>