what is it that you need... for it to calculate the fields... just get the value of the fields with.. document.FORMNAME.FIELDNAME.value make sure your dealing with integers for doing the math, the value will be a string initially.. use parseInt or parseDouble or something ..
Jason "Aris Santillan" <[EMAIL PROTECTED]> wrote: > > i need help on this > > > <html> > <head> > <script language="JavaScript"> > </script> > <title>Compute quantity</title> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> > </head> > > <body> > <form name="test"> > <table width="53%" border="0"> > <tr> > <td height="21" colspan="2"> </td> > <td width="28%"><div align="center"><strong><font size="1" face="Verdana, > Arial, Helvetica, sans-serif">Qty > 1</font></strong></div></td> > <td width="28%"><div align="center"><strong><font size="1" face="Verdana, > Arial, Helvetica, sans-serif">Qty > 2</font></strong></div></td> > <td width="28%"><div align="center"><strong><font size="1" face="Verdana, > Arial, Helvetica, sans-serif">Final > Qty for (Qty1 & Qty2)</font></strong></div></td> > </tr> > <tr> > <td width="10%" height="30"><font size="1" face="Geneva, Arial, Helvetica, > sans-serif">ITEM > ONE</font></td> > <td width="6%"> <input type="checkbox" name="checkbox[]" value="check"> > </td> > <td width="28%"> <input type="text" name="entry1[]"> </td> > <td width="28%"><input type="text" name="entry2[]" ></td> > <td width="28%"><input type="text" name="entry3[]" ></td> > </tr> > <tr> > <td height="24"><font size="1" face="Geneva, Arial, Helvetica, > sans-serif">ITEM > TWO</font></td> > <td><input type="checkbox" name="checkbox[]" value="check"></td> > <td><input type="text" name="entry1[]"></td> > <td><input type="text" name="entry2[]"></td> > <td><input type="text" name="entry3[]" ></td> > </tr> > <tr> > <td colspan="5"> <div align="center"> > <input type="button" name="Submit" value="Calculate"> > </div></td> > </tr> > </table> > </form> > </body> > </html> > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php