Hallo liebe Forengemeinde :o)
's will einfach nicht :o(
--------------------------------------------------------------------
<script language = "text/javascript">
function rechnen_i(i)
{
window.document.konf.ergebnis[i].value = window.document.konf.bez[i].value * window.document.konf.addit[i].value;
}
</script>
<table width="575" cellspacing="0" cellpadding="10" border="0">
<tr>
<td>
<pre>
<form name="konf">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#B4B4B4"> Option</td>
<td bgcolor="#C3C3C3"> Preis</td>
<td bgcolor="#D2D2D2"> Bedarf</td>
<td bgcolor="#E1E1E1"> Preis</td>
</tr>
<?
for ($numero=1; $numero<=7; $numero++)
{
include("inc/zusatz_ini.php"); ?>
<tr>
<td><? echo "$bezeichnung"; ?></td>
<td><input type="text" name="addit[<?=$numero;?>]" size="5" value="<? echo "$preis_m"; ?>" readonly></td>
<td><input type="text" name="bez[<?=$numero;?>]" value="0" size="5" onKeyup="rechnen_i(<?=$numero;?>);"></td>
<td><input type="text" name="ergebnis[<?=$numero;?>]" value="0" size="5" readonly></td>
</tr>
</table>
</form>
</pre>
</td>
</tr>
</table>
--------------------------------------------------------------------
Hat Jemand ne Idee, wie es funktionieren könnte?
Gruß Romi :o)