Re: any javascript gurus?

From: Date: Mon, 09 Aug 2004 02:22:34 +0000
Subject: Re: any javascript gurus?
Groups: php.general 
Request: Send a blank email to php-general+get-193161@lists.php.net to get a copy of this message
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" <aris.santillan@summitmedia.com.ph> 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> > > >

« previous php.general (#193161) next »