Re: Summing fields
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10837
interpreted = N
texte = >Let me know if it works, but I have my doubts ... the reason being that>WebCat2 probably cannot pick up the variables from a form unless the>'Submit' button is clicked by the user. The same concept goes for>hyperlinks - those variables are not passed unless someone clicks the link.>>I think that clicking something on the page is the trigger than actually>sends WebCat2 those variables.Ken's right; no CGI can possible pick up that information until _after_ the form is submitted. HTML works that way. If you go to ClubMac you'll see we calculate the totalWeight on an intermediate page before showing the shipping price on the next page. Formulas.db cuts down on one extra step, but the only way to calculate information 'live' on a single page is to use Java or JavaScript.It's got nothing to do with where you put the form variables in the HTML -- first, last, or in the middle, they all get sent to the next page regardless, and CGIs can't see them until the user does something.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>Let me know if it works, but I have my doubts ... the reason being that>WebCat2 probably cannot pick up the variables from a form unless the>'Submit' button is clicked by the user. The same concept goes for>hyperlinks - those variables are not passed unless someone clicks the link.>>I think that clicking something on the page is the trigger than actually>sends WebCat2 those variables.Ken's right; no CGI can possible pick up that information until _after_ the form is submitted. HTML works that way. If you go to ClubMac you'll see we calculate the totalWeight on an intermediate page before showing the shipping price on the next page.
formulas.db cuts down on one extra step, but the only way to calculate information 'live' on a single page is to use Java or JavaScript.It's got nothing to do with where you put the form variables in the HTML -- first, last, or in the middle, they all get sent to the next page regardless, and CGIs can't see them until the user does something.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
shipcost (1997)
Firewalls - What's Good? (1999)
CommandSecurity? (1997)
[WriteFile] problems (1997)
Xserve Recommendations (2003)
Word wrapping (1997)
WebCatalog dying in WebTen Revisited (1998)
WebCat2b15MacPlugin - showing [math] (1997)
[Sum] function? (1997)
RE: Cart Template (1997)
Anyone selling 4.5 NT License? (2003)
lookup and two records? (1997)
Banners (1997)
Buying sans cart (1997)
RE: 2.01 upgrade problems (1997)
capitalize each word? (2002)
I give up!! (1997)
A simple email page? (1999)
Passing WebCat data to SSL server (1997)
Listfiles (1998)