Re: Show items based on login Password
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50815
interpreted = N
texte = Dan Braley wrote:>I am setting up a site to be used in a production environment.>I would like to have it show only items that correspond with a person's>login and password.>It depends on how you are logging people in.>In the products db, I have a field that is unique to each person, Say a>number value.>Not that I would do things exactly like you are doing but...[text]theuser=[orderfile cart=[cart]][header1-40][/orderfile][/text][!]...you would write the value of customer to the header via setheader...This is the same value within the products.db. [/!]or[text]theuser=[getcookie seed=someseed]user[/getcookie][/text][!]..In the case a cookie is used instead [/!][/!]Then you can show different things to diffferent users. [/!][search db=products.db&woDESCRIPTIONdatarq=[url][keywords[/url]&eqTHEUSERFIELDdatarq=[theuser]] [founditems][/founditems][/search]Donovan>I know I need to incorporate [showif]. I was wondering if anyone has done>this yet?>I was not able to find it in the archives. Sorry, I am kind of new at this.>> >>Thank You,>>Dan Braley>>> >-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Dan Braley wrote:>I am setting up a site to be used in a production environment.>I would like to have it show only items that correspond with a person's>login and password.>It depends on how you are logging people in.>In the products db, I have a field that is unique to each person, Say a>number value.>Not that I would do things exactly like you are doing but...[text]theuser=[orderfile cart=[cart]][header1-40][/orderfile][/text][!]...you would write the value of customer to the header via setheader...This is the same value within the products.db. [/!]or[text]theuser=[getcookie seed=someseed]user[/getcookie][/text][!]..In the case a cookie is used instead [/!][/!]Then you can show different things to diffferent users. [/!][search db=products.db&woDESCRIPTIONdatarq=[url][keywords[/url]&eqTHEUSERFIELDdatarq=[theuser]] [founditems][/founditems][/search]Donovan>I know I need to incorporate [showif]. I was wondering if anyone has done>this yet?>I was not able to find it in the archives. Sorry, I am kind of new at this.>> >>Thank You,>>Dan Braley>>> >-------------------------------------------------------------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://webdna.smithmicro.com/
Donovan
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:
[WebDNA] v7.x [thisurl] (2010)
WebSTAR/WebCat is serving .db files! (1999)
upgrade? (1997)
Help! WebCat2 bug (1997)
Dates - Search and Sorting (1999)
Location of Browser Info.txt file (1997)
Alternating colors (1997)
You *can!!* overwrite username/password using an HTML form. Also, experts *please* see Q at end (2000)
Looking up two prices in Formulas.db (1997)
WebCat2b15MacPlugin - [protect] (1997)
Almost a there but..bye bye NetCloak (1997)
[Fwd: Rotating Banners ... (was LinkExchange)] (1997)
NewCart+Search with one click ? (1997)
Enough already! (1998)
WebCat2b12--[searchstring] bug (1997)
Purchae error - Fixed to a degree (1997)
WebCatalog NT beta 18 now available (1997)
Webstar 1.3.1 PPC (1997)
Store Example to Use (1998)
Date Calulation (1997)