Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 31st, 2005, 06:38 PM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to add Value Programing to an HTML code (Sum)

Hi guys i wanted to know if you guys had any idea on how to add Math or Addition to a HTML survey im working on? Like for example in MS Excel you can add tables with a certain command sum(f1+f2=f3) but i wanted to do that in HTML here is my source code:

<p align="center" class="style4"><br>
PLEASE NOTE: YOUR ANSWER SHOULD TOTAL 100% FOR EACH MATERIAL</p>
<table width="631" height="165" align="center">
<tr>
<td height="10">&nbsp;</td>
<td height="10"><div align="left"><strong>Pallet</strong></div></td>
<td height="10"><div align="left"><strong>Box</strong></div></td>
<td height="10"><div align="left"><strong>Filler</strong></div></td>
</tr>
<tr>
<td>End-User</td>
<td>
<div align="justify">
<input name="enduser_pallet" type="text" size="6">
%
</div></td>
<td>
<div align="left">
<input name="enduser_box" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="enduser_filler" type="text" size="6">
% </div></td>
</tr>
<tr>
<td>Warehouse / Employees </td>
<td>
<div align="justify">
<input name="Warehouse_pallet" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="Warehouse_box" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="Warehouse_filler" type="text" size="6">
% </div></td>
</tr>
<tr>
<td>Installer</td>
<td>
<div align="justify">
<input name="Installer_pallet" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="Installer_box" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="Installer_filler" type="text" size="6">
% </div></td>
</tr>
<tr>
<td>Other (<i>Specify</i>)
<input name="other_issues2" type="text" size="20"></td>
<td>
<div align="justify">
<input name="other_pallet" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="other_box" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="Installer_filer" type="text" size="6">
% </div></td>
</tr>
<tr>
<td><div align="right"><i>Total</i></div></td>
<td>
<div align="justify">
<input name="total_pallet" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="total_box" type="text" size="6">
% </div></td>
<td>
<div align="left">
<input name="total_filler" type="text" size="6">
% </div></td>
</tr>
</table>
<p align="center" class="style4">&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>



Any help is greatly appreciated!!!

[email protected]

Juliuscp....

Keep It Brutal
 
Old April 1st, 2005, 12:32 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

You can use javascript to do the calculations.

Om Prakash
 
Old April 1st, 2005, 02:28 PM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! :):D

Keep It Brutal





Similar Threads
Thread Thread Starter Forum Replies Last Post
add HTML tags via XSLT chopswil2 XSLT 3 November 5th, 2007 09:30 AM
How can I add asp to html metalman923 HTML Code Clinic 1 October 5th, 2006 10:38 AM
Need help programing code for date comparison jackson_jl VB Databases Basics 0 March 7th, 2005 03:05 PM
add HTML into Email created by ASP crunch Classic ASP Basics 1 March 22nd, 2004 05:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.