passing variables - problem

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15324
interpreted = N
texte = I'm trying to gather info from customers in a multi-step pass, in order to test it along the way.1. put things in cart 2. done shopping - enter billing address/contact 3. enter shipping address/contact 4. enter credit card/billing account # 5. finish - send thank you & authorize.in step 2, I have a checkbox that should be checked if they want the shipping info to be the same as the billing (i.e. [sameAsBilling]=T).I used [FormVariables] and all of the variables are being passed from F-Billing.tmpl to F-Shipping.tmpl that I need, but I can't seem to grab the Billing fields and stick them into the Shipping equivalents. I'm using F-Shipping.tmpl$showcart with hidden DB and CART from the previous template.*** BEGIN SNIPPET ***[showif [sameAsBilling]=T]

Shipping
Name[math]ShipToName=[Name][/math][ShipToName]
Company[math]ShipToCompany=[Company][/math][ShipToCompany]
Position/Job Title[math]Header5=[Header4][/math][Header5]
Address[math]ShipToAddress=[Address1][/math][ShipToAddress1]
[math]ShipToAddress2=[Address2][/math][ShipToAddress2]
City[math]ShipToCity=[City][/math][ShipToCity] State: [math][ShipTostate]=[State][/math][ShipTostate] Zip: [math]ShipTozip=[Zip][/math][ShipTozip]
Country[math]ShipToCountry=[Country][/math][ShipToCountry]
Phone[math]ShipToPhone=[Phone][/math][ShipToPhone]
Fax[math]Header2=[Header1][/math][Header2]
Email[math]ShipToemail=[email][/math][ShipToemail]

*** END OF SNIPPET ***I've tried things like: [math][ShipToCountry]=[Country][/math][ShipToCountry] *and* [math]ShipToCountry=Country[/math][ShipToCountry] *as well as the above* [math]ShipToCountry=[Country][/math][ShipToCountry]What do I need to do to insert these values on the fly?Dan Keldsen - djk@delphigroup.com Director, I.S./Webmaster - webmaster@delphigroup.com Delphi Consulting Group, Inc. - http://www.delphigroup.com/ 100 City Hall Plaza - ph: 617-247-1511 Boston, MA 02108-2106 - fax:617-247-4957 Associated Messages, from the most recent to the oldest:

    
  1. passing variables - problem (Dan Keldsen 1997)
I'm trying to gather info from customers in a multi-step pass, in order to test it along the way.1. put things in cart 2. done shopping - enter billing address/contact 3. enter shipping address/contact 4. enter credit card/billing account # 5. finish - send thank you & authorize.in step 2, I have a checkbox that should be checked if they want the shipping info to be the same as the billing (i.e. [sameAsBilling]=T).I used [formvariables] and all of the variables are being passed from F-Billing.tmpl to F-Shipping.tmpl that I need, but I can't seem to grab the Billing fields and stick them into the Shipping equivalents. I'm using F-Shipping.tmpl$showcart with hidden DB and CART from the previous template.*** BEGIN SNIPPET ***[showif [sameAsBilling]=T]

Shipping
Name[math]ShipToName=[Name][/math][ShipToName]
Company[math]ShipToCompany=[Company][/math][ShipToCompany]
Position/Job Title[math]Header5=[Header4][/math][Header5]
Address[math]ShipToAddress=[Address1][/math][ShipToAddress1]
[math]ShipToAddress2=[Address2][/math][ShipToAddress2]
City[math]ShipToCity=[City][/math][ShipToCity] State: [math][ShipTostate]=[State][/math][ShipTostate] Zip: [math]ShipTozip=[Zip][/math][ShipTozip]
Country[math]ShipToCountry=[Country][/math][ShipToCountry]
Phone[math]ShipToPhone=[Phone][/math][ShipToPhone]
Fax[math]Header2=[Header1][/math][Header2]
Email[math]ShipToemail=[email][/math][ShipToemail]

*** END OF SNIPPET ***I've tried things like: [math][ShipToCountry]=[Country][/math][ShipToCountry] *and* [math]ShipToCountry=Country[/math][ShipToCountry] *as well as the above* [math]ShipToCountry=[Country][/math][ShipToCountry]What do I need to do to insert these values on the fly?Dan Keldsen - djk@delphigroup.com Director, I.S./Webmaster - webmaster@delphigroup.com Delphi Consulting Group, Inc. - http://www.delphigroup.com/ 100 City Hall Plaza - ph: 617-247-1511 Boston, MA 02108-2106 - fax:617-247-4957 Dan Keldsen

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:

Cart/Cookie question (2005) can WC render sites out? (1997) WebCat2.0 [format thousands .0f] no go (1997) find with exceptions (1997) Error Lob.db records error message not name (1997) 2cd opinion please (2003) SV: Mass Mail (2000) WCS Newbie question (1997) WebMerchant when CC network is down (1998) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) PCS Frames (1997) WebCat2b13 Command Reference Doc error (1997) Multi-Row Tables from a search. (1997) Shhh... (2006) [WebDNA] Receive JSON POST (2019) Talk Archives Was: One Hour Email (2002) Database field limit? (1998) Looking For WebCatalog Migration Assistance (2003) Re:2nd WebCatalog2 Feature Request (1996) Using a database with a short url (2000)