Re: 2cd pare of eyes.
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39394
interpreted = N
texte = >[text][name]=NL[/text]>should be [text]name=NL[/text]>This is reserved, however so you'd best not use name perhaps. >Never use formvariables myself.NOTE: [text][name]=NL[/text] is a valid construction, as in this example it becomes...[text]SKU=NL[/text]So when he references [SKU] outside of the founditems context he has it.Donovan, I don't see any syntax errors, their might be some logic errors, what are you trying to do (with context)?-Sam>>At 06:33 PM 10/15/01, you wrote:>>Hello,>>can someone review this code and see if they can find any bad syntax?>>>>[showif [qo]=update]>>[!]to decide if the items listed are ready to add to the cart[/!]>> [formvariables name=SKU&exact=F]>> [hideif [url][value][/url]=]>> [text]valid=no[/text]>> [search db=admin/products.db&neSKUdatarq=[blank]]>> [founditems]>> [showif [url][value][/url]=[SKU]]>> [text]valid=yes[/text]>> [text]theSKU=[SKU][/text]>> [/showif]>> [/founditems]>> [showif [numfound]=0]>> [text][name]=NL[/text]>> [/showif]>> [/search]>> [showif [valid]=yes]>>[!]verifies if item is already in cart[/!]>> [orderfile cart=[cart]]>> [lineitems]>> [showif [theSKU]=[SKU]]>> [text]incart=T[/text]>> [/showif]>> [hideif [incart]=T]>> [text]shop=put[/text]>> [/hideif]>> [/lineitems]>> [/orderfile]>>[!]this adds the item[/!]>> [showif [shop]=put]>> [addlineitem >>cart=[cart]&db=admin/products.db&sku=[url][theSKU][/url]][/addlineitem]>> [/showif]>> [/showif]>> [/hideif]>> [/formvariables]>>[/showif]>>>>-- Donovan D. Brooke>>Systems Administrator/>>Assc. Art Director>>Epsen Hillmer Graphics>>>>I know I'm making progress when I look at the questions I have>>asked in the past and think to myself... how stupid was that>>>>>>------------------------------------------------------------->>This message is sent to you because you are subscribed to>> the mailing list
.>>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>>>Web Archive of this list is at: http://search.smithmicro.com/>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>[text][name]=NL[/text]>should be [text]name=NL[/text]>This is reserved, however so you'd best not use name perhaps. >Never use formvariables myself.NOTE: [text][name]=NL[/text] is a valid construction, as in this example it becomes...[text]SKU=NL[/text]So when he references [SKU] outside of the founditems context he has it.Donovan, I don't see any syntax errors, their might be some logic errors, what are you trying to do (with context)?-Sam>>At 06:33 PM 10/15/01, you wrote:>>Hello,>>can someone review this code and see if they can find any bad syntax?>>>>[showif [qo]=update]>>[!]to decide if the items listed are ready to add to the cart[/!]>> [formvariables name=SKU&exact=F]>> [hideif [url][value][/url]=]>> [text]valid=no[/text]>> [search db=admin/products.db&neSKUdatarq=[blank]]>> [founditems]>> [showif [url][value][/url]=[SKU]]>> [text]valid=yes[/text]>> [text]theSKU=[SKU][/text]>> [/showif]>> [/founditems]>> [showif [numfound]=0]>> [text][name]=NL[/text]>> [/showif]>> [/search]>> [showif [valid]=yes]>>[!]verifies if item is already in cart[/!]>> [orderfile cart=[cart]]>> [lineitems]>> [showif [theSKU]=[SKU]]>> [text]incart=T[/text]>> [/showif]>> [hideif [incart]=T]>> [text]shop=put[/text]>> [/hideif]>> [/lineitems]>> [/orderfile]>>[!]this adds the item[/!]>> [showif [shop]=put]>> [addlineitem >>cart=[cart]&db=admin/products.db&sku=[url][theSKU][/url]][/addlineitem]>> [/showif]>> [/showif]>> [/hideif]>> [/formvariables]>>[/showif]>>>>-- Donovan D. Brooke>>Systems Administrator/>>Assc. Art Director>>Epsen Hillmer Graphics>>>>I know I'm making progress when I look at the questions I have>>asked in the past and think to myself... how stupid was that>>>>>>------------------------------------------------------------->>This message is sent to you because you are subscribed to>> the mailing list .>>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>>>Web Archive of this list is at: http://search.smithmicro.com/>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Samuel Renkert
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:
Possible Macv2.1b2 Merge Bug (1997)
listfiles-looking for slick solution (1997)
WebCatalog/WebMerchant 2.1 (1998)
Error Lob.db records error message not name (1997)
Number of Feilds Passed to [append] (2000)
What's wrong with this [append] context? (2000)
Possible Bug in 2.0b15.acgi (1997)
RE: WebCatalog2 for NT Beta Request (1997)
Not really WebCat (1997)
PCS Frames (1997)
Running _every_ page through WebCat ? (1997)
Grep Question - NOT YET SOLVED (fwd) (2003)
Robert Minor duplicate mail (1997)
WebDNA 4.5.1 Now Available (2003)
$Quit, $CloseDatabase corrections (1997)
stripping extra spaces from form fields (2000)
WebDNAReference (2000)
show all problem (1997)
searchable list archive (1997)
Search/sort in URL Was: GuestBook example (1997)