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:
[SMSI] WebDNA is too good to go away! (2006)
Progress !! WAS: Trouble with formula.db (1997)
[BULK] [WebDNA] [BULK] Mac OS X LION has no FastCGI (2011)
Tracking inbound links for discounts (1997)
Making webcam movies (2003)
MASTER_STORE revision (2002)
Initiating NewCart (1997)
best way to test for the existence of a parameter in a url (2003)
Tech question about web dna actions (1998)
More Applescript (1997)
X etc.... (1999)
HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)
[WebDNA] More wish-list requests implemented (2016)
Trouble with formula.db (1997)
Sendmail: bounced e-mails (2001)
[BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011)
Pull down menu for categories (2000)
webcat memory problem (2001)
Wrapping text (1998)
Alternating BGColors in Table Rows (1998)