Re: Replace context problem ...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12527
interpreted = N
texte = At 11:37 PM -1000 7/16/97, Kenneth Grome altered the fabric of cyberspace, writing:Hi Ken,It seems that you have run into the problem I had the other day regarding $Delete. I wanted to have an 'Admin Delete' function to delete records enter by someone else.Useing some [ShowIf] stuff to just show it to my domain, I added a liknk that contained the user/pass combo that had been picked up by the search of the record.Admin Delete> I am trying to replace some data in a record by using a replace context, > but it doesn't work. I have username and password fields in my database. I > think the existence of the username and password fields may have something > to do with this problem, but I'm not sure ... > > I collected most of the field replacement values from a form on the > previous page, and I collected the [user] and [pass] values from a form on > the page prior to that. I used tags in my forms to pass > all these values thru to the replace template. >I was going to use this approach of a form with hidden fields also, however, it then passed the usr/pass combo with the values in the succeding url, exposing that information.> I know that all these values are getting to the replace template because I > have them displayed on that page during testing - just to be sure they are > all there. > > My replace context looks like this: > > [replace > >db=xxx.db&equsernamedata=[user]&username=[user]&password=[pass]]fieldValuesHere[ > /replace] >Perhaps changing to:[replace db=xxx.db&SKUdata=[SKU]&username=[username]&password=[password]]fieldValuesHere[ /replace]would make the differance.I know that in the 'Classifieds' example, the methiod of authentacating the record owner is used. Perhaps that would be of some help.Not sure that I have been any help ...<--Glenn-->~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Glenn & Renee Davis Exclusively Web / Net Highway (916) 887-0678 Web Page Design / Hosting Services POB 157, Cool,CA 95614-0157 http://www.ExclusivelyWeb.com http://www.Net-Hwy.com &&& ||| (@ @) (@ @) ----------------------------ooO---U---Ooo---------------ooO--(_)--Ooo------->> Mailto:renee@Net-Hwy.com Mailto:glenn@Net-Hwy.com Mailto:renee@ExclusivelyWeb.com Mailto:glenn@ExclusivelyWeb.com Graphics Design Webmaster Associated Messages, from the most recent to the oldest:

    
  1. Re: Replace context problem ... (Glenn Davis 1997)
  2. Re: Replace context problem ... (Kenneth Grome 1997)
  3. Re: Replace context problem ... (Glenn Davis 1997)
  4. Replace context problem ... and answers (Kenneth Grome 1997)
  5. Replace context problem ... (Kenneth Grome 1997)
At 11:37 PM -1000 7/16/97, Kenneth Grome altered the fabric of cyberspace, writing:Hi Ken,It seems that you have run into the problem I had the other day regarding $Delete. I wanted to have an 'Admin Delete' function to delete records enter by someone else.Useing some [showif] stuff to just show it to my domain, I added a liknk that contained the user/pass combo that had been picked up by the search of the record.[username]&password=[pa ssword]>Admin Delete> I am trying to replace some data in a record by using a replace context, > but it doesn't work. I have username and password fields in my database. I > think the existence of the username and password fields may have something > to do with this problem, but I'm not sure ... > > I collected most of the field replacement values from a form on the > previous page, and I collected the [user] and [pass] values from a form on > the page prior to that. I used tags in my forms to pass > all these values thru to the replace template. >I was going to use this approach of a form with hidden fields also, however, it then passed the usr/pass combo with the values in the succeding url, exposing that information.> I know that all these values are getting to the replace template because I > have them displayed on that page during testing - just to be sure they are > all there. > > My replace context looks like this: > > [replace > >db=xxx.db&equsernamedata=[user]&username=[user]&password=[pass]]fieldValuesHere[ > /replace] >Perhaps changing to:[replace db=xxx.db&SKUdata=[SKU]&username=[username]&password=[password]]fieldValuesHere[ /replace]would make the differance.I know that in the 'Classifieds' example, the methiod of authentacating the record owner is used. Perhaps that would be of some help.Not sure that I have been any help ...<--Glenn-->~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Glenn & Renee Davis Exclusively Web / Net Highway (916) 887-0678 Web Page Design / Hosting Services POB 157, Cool,CA 95614-0157 http://www.ExclusivelyWeb.com http://www.Net-Hwy.com &&& ||| (@ @) (@ @) ----------------------------ooO---U---Ooo---------------ooO--(_)--Ooo------->> Mailto:renee@Net-Hwy.com Mailto:glenn@Net-Hwy.com Mailto:renee@ExclusivelyWeb.com Mailto:glenn@ExclusivelyWeb.com Graphics Design Webmaster Glenn Davis

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:

syntax question, not in online refernce (1997) Digest for 09-30-97 (1997) problems with WebCat-Plugin (1997) interactive .pdf files and WebCatalog (2000) Re:WebDNA Writer Needed (1997) Calculating Shipping charges for multiple items and qtys > 1 (1997) Show shoppingcart after remove last item (1997) Re[3]: 2nd WebCatalog2 Feature Request (1996) Pass a form (2003) Grepping text variable tags (was: No subject given) (2000) Help!!!! (1997) WebCat editing, SiteGuard & SiteEdit (1997) SiteGuard Admin Feature ? (1997) Bug Report, maybe (1997) Setting up shop (1997) WCS Newbie question (1997) webcat- multiple selection in input field (1997) [SearchString] usage (1997) redirect with frames (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997)