RE: [PHP-DB] Simple Addition Form

From: Date: Fri, 19 Jan 2001 18:15:46 +0000
Subject: RE: [PHP-DB] Simple Addition Form
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5996@lists.php.net to get a copy of this message
Since you want your totaling calculation to be done on the client side, you would need to use a client side scripting language like Javascript to do this for you. PHP is server side and can't do the dynamic form updates that you are referring to. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 smasiello@chekinc.com -----Original Message----- From: Honey Gastauer [mailto:hgastauer@kingwoodgroup.com] Sent: Friday, January 19, 2001 1:06 PM To: php-db@lists.php.net Subject: [PHP-DB] Simple Addition Form I have a form with several text variable fields (30) in which the client is asked to select and assign a weight to each variables that influenced their decision to do something. The total weight of all selected variables must total 100. I have a field "total weight" that I want the sum of the assigned weights to appear. As the client assigns each weight the total weight would update using an onChange(or similar action). I do not want the client to have to click a submit or calculate button in order to have the total displayed. I want to remain on the same form so that the client can make alterations to his/her assigned weights until they equal 100. My web hosting/server provider does not allow any type of sql databasing on their server so I will be gathering the data in a text file so there is not interactivity with a database. Is this such a difficult thing to do, or am I just not seeing the forest for the trees? I'm befuddled. I've even resorted to learning some java and cgi scripting to accomplish this but, I now realize, given my time frame, I don't have time to teach myself all I need to know about these languages to make this work. You can view a sample of the web form I have created thus far at http://www.kingwoodgroup.com/PHPTestExample . I appreciate any direction you can give. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#5996) next »