Code PHP :
<?php
<script language="javascript">
function remplace(val)
{
var metal = val*2000;
var cristal = val*2500;
document.getElementById('metal').innerHTML='cout metal:' + metal;
document.getElementById('cristal').innerHTML='cout cristal:' + cristal;
}
</script>
rechercher:
<input type="text" name="metal" size="1" onChange="remplace(this.value)">heure<br/><br/>
<div id="metal">cout metal:</div>
<div id="cristal">cout cristal:</div>
un truc comme ca