Re: New user...how do I create URLs from form fields?
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 31260
interpreted = N
texte = on 5/2/2000 3:09 PM, DMP at dmp1@pcom.net wrote:> Hello Kenneth,> > Thank you for the guidance advice, I'm happy to say that I do most of what> you're recommending , at least in terms of keeping the references close and> trying to understand the tags and language. I've actually been using> Typhoon for almost a year now, and so have some knowledge of the WebDNA> language. Lots more learning to be done though, and I'm still trying to> figure out the differences between Typhoon and WebCatalog.> > The only other thing I will say is that when I referred to [input value] I> wasn't thinking that there was such a tag, but that, as the reference> manual says in its description of form variables and their use, that if you> enclose the variable name from a form within the brackets then you can use> them to display the inputted text. So I was hoping to be able to construct> a URL from a form submission.> Ah, here may be the root of you confusion. Since the form has yet to besubmitted, there is no value for your [input value] variable. One thingthat is sometimes hard for new users to grasp initially is that webcatalogcan only operate on the template _before_ it's sent to the browser. UnlikeJavascript, which operates in the browser _after_ it's left the server. I'msure you understand this already, I'm just pointing it out in case youhaven't applied that logic thoroughly to this problem. Since when the formis first served by Webcat, there is no value for your [input value]variable. Double check this by viewing your html source in the browser.You'll see literally [input value] in the form. Since there is no valueinitially, it won't be usable in this situation. There are a number ofother approaches that will work, however. Redirect or pass the value froman intermediate form. Redirect would look something like this:[showif [theUser]![raw][theUser][/raw]][redirect /[theUser].tpl][/showif]
Using [thisURL] as the form action makes it submit back to itself. At thatpoint, the input variable will have a value. You'll want to add errorchecking or validation to this to prevent blank entries or non-memberlogins, etc.======================Or you could do an intermediate form like this:[showif [theUser]![raw][theUser][/raw]]
[/showif][showif [theUser]=[raw][theUser][/raw]]
[/showif]Hope that helps...Mike-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
on 5/2/2000 3:09 PM, DMP at dmp1@pcom.net wrote:> Hello Kenneth,> > Thank you for the guidance advice, I'm happy to say that I do most of what> you're recommending , at least in terms of keeping the references close and> trying to understand the tags and language. I've actually been using> Typhoon for almost a year now, and so have some knowledge of the WebDNA> language. Lots more learning to be done though, and I'm still trying to> figure out the differences between Typhoon and WebCatalog.> > The only other thing I will say is that when I referred to [input value] I> wasn't thinking that there was such a tag, but that, as the reference> manual says in its description of form variables and their use, that if you> enclose the variable name from a form within the brackets then you can use> them to display the inputted text. So I was hoping to be able to construct> a URL from a form submission.> Ah, here may be the root of you confusion. Since the form has yet to besubmitted, there is no value for your [input value] variable. One thingthat is sometimes hard for new users to grasp initially is that webcatalogcan only operate on the template _before_ it's sent to the browser. UnlikeJavascript, which operates in the browser _after_ it's left the server. I'msure you understand this already, I'm just pointing it out in case youhaven't applied that logic thoroughly to this problem. Since when the formis first served by Webcat, there is no value for your [input value]variable. Double check this by viewing your html source in the browser.You'll see literally [input value] in the form. Since there is no valueinitially, it won't be usable in this situation. There are a number ofother approaches that will work, however. Redirect or pass the value froman intermediate form. Redirect would look something like this:[showif [theUser]![raw][theUser][/raw]][redirect /[theUser].tpl][/showif]Using [thisurl] as the form action makes it submit back to itself. At thatpoint, the input variable will have a value. You'll want to add errorchecking or validation to this to prevent blank entries or non-memberlogins, etc.======================Or you could do an intermediate form like this:[showif [theUser]![raw][theUser][/raw]][/showif][showif [theUser]=[raw][theUser][/raw]][/showif]Hope that helps...Mike-------------------------------------------------------------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
Mike 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:
searching multiple databases in single search (1997)
Running 2 two WebCatalog.acgi's (1996)
formatting dates from a field ... (1997)
ShowIf helper? (1998)
Extended [ConvertChars] (1997)
WebMerchant and PCAuthorize (1998)
WebCat2b12 - nesting [tags] (1997)
Wait, I forgot something! (was authenticating a seconduser, the sequel) (1997)
[WebDNA] TCPconnect and Bitcoin rate (2017)
taxTotal, grandTotal (1997)
Credit Card not accepted (1998)
WebTV (1998)
Tax on shipping (1998)
Next X hits (1996)
Re:2nd WebCatalog2 Feature Request (1996)
WebCat2 several catalogs? (1997)
[foundItems] context problem (2000)
Part Html part WebDNA (1997)
Removing [showif] makes a big difference in speed (1997)
Problem: 3.0 doesn't update carts (1997)