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:

WCS Newbie question (1997) Triggers and today's leap day? (2000) WebCat2 - storing unformatted date data? (1997) SetHeader context (1998) OT: javascript help (2003) are YOU disallowing certain chars to be in user passwords? Why? (2000) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) New syntax feedback for 4.0 (2000) Generating Options for a Form. (1997) math with multiple [founditems] (1999) Newbie Tax Question (1997) Off Topic: Frames Killer? (1998) select multiple 2 more cents (1997) Out of the woodwork (2007) Shopping carts and reloading pages (1997) WebDNA and SQL (2003) Before I Can Begin . . . (1998) Saving Text Areas with Orders (1997) One Hour Email (2002) [math show=f]nuCheck1=[check1]=1[/math] = proper syntax?? (2000)