Customizing WebDelivery.html

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18676
interpreted = N
texte = >>On a related matter, I took Bob Minor's suggestion, and others', of putting >>up a [cart].html file (created a page earlier with [copyfile]) with a meta >>refresh so they have a Wait while your card is being processed type of >>page. But I don't get how to pass along the variables that I need on the >>refreshed page that adds them to the paid members database. By the time the >>above bolluxed-up new [cart].html appears, the variables are gone. > >Mine retains the info, you have to watch the redirection that you use, >you will have to pass all the variables manually. In my case I just >passed the cart # and pulled the rest out of a temp.db database based on >the cart info. Which webserver are you using?Thanks, Bob. I figured out that the special fields WebMerchant understands get interpreted and then written directly to the html file. Using Header fields, I passed values manually, as you say.However, there's a problem with the [append] context I have on the webdelivery page. I use the [append] to add the info to the final members.db, then a [delete] tag afterwards to delete it from a pendingMembers.db. The [delete]tag works fine. WebMerchant is misbehaving toward [append][/append].Here's the code from the webdelivery.html file that WebMerchant takes, fools with, and spits out as the [cart].html file, whose code follows:=====webdelivery.html: [append db=/fdusers/fdusers.db]fdID=[Header1][/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=[Header1]]=====[cart].html: [db]fdID=29824116034361[/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=29824116034361]=====And the browser displays: [db]fdID=29824116034361Error: Error: expected [/HTMLFORM], but found [/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=29824116034361]There are no [] brackets whatsoever before this, only normal html, and no opening form tags.=====My fix: I finally got it to work by using Header5 and Header6 fields for [raw][append db=/fdusers/fdusers.db][/raw] and [raw][/append][/raw] respectively in the preceding template, so it looks like this [Header5]fdID=[Header1][Header6]...and that works. But it seems like a bad workaround. Is there something wrong with the way I had it in the first place, or is append illegal going into WebMer? I'm using a Mac and WebStar3.I think this may have been the hardest part of my project...Thanks, Terry WilsonTerry Wilson terryw@rainbowcreek.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Customizing WebDelivery.html (Grant Hulbert 1998)
  2. Re: Customizing WebDelivery.html (Terry Wilson 1998)
  3. Re: Customizing WebDelivery.html (Bob Minor 1998)
  4. Re: Customizing WebDelivery.html (PCS Technical Support 1998)
  5. Re: Customizing WebDelivery.html (Bob Minor 1998)
  6. Customizing WebDelivery.html (Terry Wilson 1998)
>>On a related matter, I took Bob Minor's suggestion, and others', of putting >>up a [cart].html file (created a page earlier with [copyfile]) with a meta >>refresh so they have a Wait while your card is being processed type of >>page. But I don't get how to pass along the variables that I need on the >>refreshed page that adds them to the paid members database. By the time the >>above bolluxed-up new [cart].html appears, the variables are gone. > >Mine retains the info, you have to watch the redirection that you use, >you will have to pass all the variables manually. In my case I just >passed the cart # and pulled the rest out of a temp.db database based on >the cart info. Which webserver are you using?Thanks, Bob. I figured out that the special fields WebMerchant understands get interpreted and then written directly to the html file. Using Header fields, I passed values manually, as you say.However, there's a problem with the [append] context I have on the webdelivery page. I use the [append] to add the info to the final members.db, then a [delete] tag afterwards to delete it from a pendingMembers.db. The [delete]tag works fine. WebMerchant is misbehaving toward [append][/append].Here's the code from the webdelivery.html file that WebMerchant takes, fools with, and spits out as the [cart].html file, whose code follows:=====webdelivery.html: [append db=/fdusers/fdusers.db]fdID=[Header1][/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=[Header1]]=====[cart].html: [db]fdID=29824116034361[/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=29824116034361]=====And the browser displays: [db]fdID=29824116034361Error: Error: expected [/HTMLFORM], but found [/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=29824116034361]There are no [] brackets whatsoever before this, only normal html, and no opening form tags.=====My fix: I finally got it to work by using Header5 and Header6 fields for [raw][append db=/fdusers/fdusers.db][/raw] and [raw][/append][/raw] respectively in the preceding template, so it looks like this [Header5]fdID=[Header1][Header6]...and that works. But it seems like a bad workaround. Is there something wrong with the way I had it in the first place, or is append illegal going into WebMer? I'm using a Mac and WebStar3.I think this may have been the hardest part of my project...Thanks, Terry WilsonTerry Wilson terryw@rainbowcreek.com Terry Wilson

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:

Re:Emailer tracking (1997) Blasted shownext (request for 4.0) (1998) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) [WebDNA] OT: Indexing PDF on iTools / apache2 (2008) Email (1998) WebCatalog Mac 2.1b3 (1997) Modulo function? (2000) Multiple prices (1997) Db design question (relational vs. flat?) (1998) Quitting WebMerchant ? (1997) Encyption mail was Suggestions for Topics ... (1998) Cold Fusion Warm and Fuzzy? (1999) Error .. (2003) Help! WebCat2 bug (Ben's input) (1997) loops (2000) WebCat Error Log problem (2.0.1, acgi, Mac) (1997) totals (1997) ODBC on OS 9 (2003) WebCat2final1 crashes (1997) Emailer errors (2000)