What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: Replace context problem ...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12530
interpreted = N
texte = At 7:11 PM -1000 7/17/97, Kenneth Grome altered the fabric of cyberspace, writing:> As the administrator of my web site I would like to be able to update ANY > record in ANY database. This seems like a reasonable request, right? >Here! Here! > Okay, so in order to do that, first I have to type my own username/password > into the browser's authentication box in order to access the [protected] > page for my admin replace template. So far, so good. I enter MY admin > username and password into the browser's authenticate box and I can then > access the replace form. >Thats right. If you use a protected page you will have to type a usr/pass combo. Ant this is where your problem begins. WebCat now has only your user/pass and not the record owners in the db.Solution??You have to now do a $Search for the record that you want to replace again on this page. Then include a link that will have a form to replace the values that you want to change. The URL to the link needs to contain &user=[username]&pass=[password]. This should collect the user/pass combo from the searched record. On the Edit.tmpl file you can do your editing and then send that off to a validator.tmpl to replace the values you changed.Remember if you try to use [protect] on the .tmpl pages down the path, you will again be forced into the same loop as before.The solution that I used had a differant approach, since this kind of action always takes place here. I used [ShowIf [IPAddress]^.net-hwy.com] to hide the link. Yes, I know that [IPAddress] should return a number, BUT if you have 'use DNS' checked in WebStar, it will return the 'host name' of a DNS named box. Since I control the DNS, I name the box. That way someone can't spoof an IP number. Even if I am away from home, I can change the IP address on the box that I'm using to one that I have a DNS record to and get the same effect.> > I was asking Grant if it would make sense to make WebCat2 use the > username/password values I'm trying to get it to use - before trying to use > the browser's username/password values. I don't know how the WebCat2 code > is written, though, so I don't know if this even possible. I feel that it would be ever so much more practical to have WebCat also look at the user.db for Admin user/pass combo that would be acceptable to over ride the standard username password security in the .db.Hope that I have brought some light to this...Just another 'Local Boy' displaced to the 'Mainland' by circumstance.Aloha<--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 7:11 PM -1000 7/17/97, Kenneth Grome altered the fabric of cyberspace, writing:> As the administrator of my web site I would like to be able to update ANY > record in ANY database. This seems like a reasonable request, right? >Here! Here! > Okay, so in order to do that, first I have to type my own username/password > into the browser's authentication box in order to access the [protected] > page for my admin replace template. So far, so good. I enter MY admin > username and password into the browser's authenticate box and I can then > access the replace form. >Thats right. If you use a protected page you will have to type a usr/pass combo. Ant this is where your problem begins. WebCat now has only your user/pass and not the record owners in the db.Solution??You have to now do a $Search for the record that you want to replace again on this page. Then include a link that will have a form to replace the values that you want to change. The URL to the link needs to contain &user=[username]&pass=[password]. This should collect the user/pass combo from the searched record. On the Edit.tmpl file you can do your editing and then send that off to a validator.tmpl to replace the values you changed.Remember if you try to use [protect] on the .tmpl pages down the path, you will again be forced into the same loop as before.The solution that I used had a differant approach, since this kind of action always takes place here. I used [ShowIf [ipaddress]^.net-hwy.com] to hide the link. Yes, I know that [ipaddress] should return a number, BUT if you have 'use DNS' checked in WebStar, it will return the 'host name' of a DNS named box. Since I control the DNS, I name the box. That way someone can't spoof an IP number. Even if I am away from home, I can change the IP address on the box that I'm using to one that I have a DNS record to and get the same effect.> > I was asking Grant if it would make sense to make WebCat2 use the > username/password values I'm trying to get it to use - before trying to use > the browser's username/password values. I don't know how the WebCat2 code > is written, though, so I don't know if this even possible. I feel that it would be ever so much more practical to have WebCat also look at the user.db for Admin user/pass combo that would be acceptable to over ride the standard username password security in the .db.Hope that I have brought some light to this...Just another 'Local Boy' displaced to the 'Mainland' by circumstance.Aloha<--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:

I have troubles to send message out (1998) Needed, Freelance Web Developer (2007) Carts & cookies (1999) FYI: virus alert (1996) Number searching/formats (1998) [append] vs. [appendfile] delta + question? (1997) quit command on NT (1997) [input] [/input] (1997) Weird error/limit - something amiss? (1997) Web Catalog and Net Cloak (1998) HomePage Caution (1997) Shopping Cart Deletion (2000) multi-paragraph fields (1997) the comparison character \ (2000) WebCat2 beta 11 - new prefs ... (1997) Webcatalog and foreign languages (1998) New Command prefs ... (1997) Text data with spaces in them... (1997) Replace context problem ... (1997) Dealing with return characters (2004)