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 be submitted, there is no value for your [input value] variable. One thing that is sometimes hard for new users to grasp initially is that webcatalog can only operate on the template _before_ it's sent to the browser. Unlike Javascript, which operates in the browser _after_ it's left the server. I'm sure you understand this already, I'm just pointing it out in case you haven't applied that logic thoroughly to this problem. Since when the form is 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 value initially, it won't be usable in this situation. There are a number of other approaches that will work, however. Redirect or pass the value from an 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 that point, the input variable will have a value. You'll want to add error checking or validation to this to prevent blank entries or non-member logins, etc. ====================== Or you could do an intermediate form like this: [showif [theUser]![raw][theUser][/raw]]
Thanks for logging in, [theUser]!
[/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:

    
  1. Re: New user...how do I create URLs from form fields? (Michael O Shea 2000)
  2. Re: New user...how do I create URLs from form fields? (Mike Davis 2000)
  3. Re: New user...how do I create URLs from form fields? (DMP 2000)
  4. Re: New user...how do I create URLs from form fields? (Aaron Lynch 2000)
  5. Re: New user...how do I create URLs from form fields? (Charles Kline 2000)
  6. Re: New user...how do I create URLs from form fields? (DMP 2000)
  7. Re: New user...how do I create URLs from form fields? (Kenneth Grome 2000)
  8. Re: New user...how do I create URLs from form fields? (Charles Kline 2000)
  9. New user...how do I create URLs from form fields? (DMP 2000)
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 be submitted, there is no value for your [input value] variable. One thing that is sometimes hard for new users to grasp initially is that webcatalog can only operate on the template _before_ it's sent to the browser. Unlike Javascript, which operates in the browser _after_ it's left the server. I'm sure you understand this already, I'm just pointing it out in case you haven't applied that logic thoroughly to this problem. Since when the form is 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 value initially, it won't be usable in this situation. There are a number of other approaches that will work, however. Redirect or pass the value from an intermediate form. Redirect would look something like this: [showif [theUser]![raw][theUser][/raw]] [redirect /[theUser].tpl] [/showif]
[thisurl]>
Using [thisurl] as the form action makes it submit back to itself. At that point, the input variable will have a value. You'll want to add error checking or validation to this to prevent blank entries or non-member logins, etc. ====================== Or you could do an intermediate form like this: [showif [theUser]![raw][theUser][/raw]]
Thanks for logging in, [theUser]!
[/showif] [showif [theUser]=[raw][theUser][/raw]]
[thisurl]>
[/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:

Format question WC Mac f3 (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) [COMMITDATABASE FileName] (2000) Download (1999) Sorta OT: Printing From Browser Window (2001) [getchars] questions (1997) MacActivity and PCS (1997) WebDelivery downloads alias, not original ? (1997) [date format] w/in sendmail (1997) automatically updating all records, one by one in a db (2000) RE: Discounting prices across a site (1997) Navigator 4.0 & tables (1997) Error Template (1999) Web Catalog Book? (1998) Double postings (2000) truncating email part II (1997) [WriteFile] problems (1997) Site Test Please (2005) RAM problems, [appendfile] problems (1998) OT: Script time and date (2003)