damar3
01-02-2002, 10:12
Sto provando a fare la conversione in lire tramte uno script VBSCRIPT. Qualcuno mi potrebbe dire dove sbaglio?
<html>
<head>
<title>SecondaProvaVBScript</title></head>
<body>
€
<form name="form1">
<input type="Text" name="eur" size="40"><BR><BR>
<input type="Text" name="lir" size="40"><BR><BR>
<input type="Submit" name="submit" value="Clikka qui per la conversione"
</form>
<script language="VBScript">
<!--
function submit_onclick
dim form
set form=document.form1
euro = form.eur.value
l=conv(euro)
lir.value=l
end function
-->
</script>
<script language="VBScript">
<!--
function conv(euro)
l=euro*1936,27
end function
-->
</script>
</body>
</html>
<html>
<head>
<title>SecondaProvaVBScript</title></head>
<body>
€
<form name="form1">
<input type="Text" name="eur" size="40"><BR><BR>
<input type="Text" name="lir" size="40"><BR><BR>
<input type="Submit" name="submit" value="Clikka qui per la conversione"
</form>
<script language="VBScript">
<!--
function submit_onclick
dim form
set form=document.form1
euro = form.eur.value
l=conv(euro)
lir.value=l
end function
-->
</script>
<script language="VBScript">
<!--
function conv(euro)
l=euro*1936,27
end function
-->
</script>
</body>
</html>