Redirection based upon form variable (was: Re: MOOOOOO)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 27877
interpreted = N
texte = On 2/21/00 12:20 pm, Christopher Feyrer so noted...>>Can you show me an example with a variable included? I will need to pass >>along many variables.... >> >> >>>[showif a=checked] >>content=0;url=page1.html?(any variables that need to be passed)>[/showif] >>>[showif a=unchecked] >>content=0;url=page2.html>[/showif] >>>Christopher Feyrer > >Here's a more complete example of my method. > > > >[showif a=checked] content=0;url=page1.tpl?variable1fromform=[variable1fromform]&variable2fr >omform >=[variable2fromform]>[/showif] >[showif a=unchecked] content=0;url=page2.tpl?variable1fromform=[variable1fromform]&variable2fr >omform >=[variable2fromform]>[/showif] > > > >Why not use WebCat's [redirect] and a [formvariables] loop?[text]submission=[formvariables][showif [index]>2]&[/showif][showif [name]!template][name]=[value][/showif][/formvariables][/text] [showif [a]=checked][redirect page1.tpl?[submission]][/showif] [showif [a]=[raw][a][/raw]][redirect page2.tpl?[submission]][/showif]You're going to be limited to about 255 characters to pass this way (if I recall correctly), so if you have a *lot* of data to pass, you should store it in a database or cart headers or some similar method.P.S. If you're presenting a single yes/no type option, you should use a checkbox, not a radio button.P.P.S. Subject lines that are slightly descriptive make these questions easier to track ; )Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 2/21/00 12:20 pm, Christopher Feyrer so noted...>>Can you show me an example with a variable included? I will need to pass >>along many variables.... >> >> >>>[showif a=checked] >>content=0;url=page1.html?(any variables that need to be passed)>[/showif] >>>[showif a=unchecked] >>content=0;url=page2.html>[/showif] >>>Christopher Feyrer > >Here's a more complete example of my method. > > > >[showif a=checked] content=0;url=page1.tpl?variable1fromform=[variable1fromform]&variable2fr >omform >=[variable2fromform]>[/showif] >[showif a=unchecked] content=0;url=page2.tpl?variable1fromform=[variable1fromform]&variable2fr >omform >=[variable2fromform]>[/showif] > > > >Why not use WebCat's [redirect] and a [formvariables] loop?[text]submission=[formvariables][showif [index]>2]&[/showif][showif [name]!template][name]=[value][/showif][/formvariables][/text] [showif [a]=checked][redirect page1.tpl?[submission]][/showif] [showif [a]=[raw][a][/raw]][redirect page2.tpl?[submission]][/showif]You're going to be limited to about 255 characters to pass this way (if I recall correctly), so if you have a *lot* of data to pass, you should store it in a database or cart headers or some similar method.P.S. If you're presenting a single yes/no type option, you should use a checkbox, not a radio button.P.P.S. Subject lines that are slightly descriptive make these questions easier to track ; )Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Rob Marquardt

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:

RE: Subtotal help (1997) [tcpsend] (2001) [WebDNA] Displaying time specific records (2010) WebCatalog can't find database (1997) Search or delete (or date or time) has bugs ... (1998) Help! WebCat2 bug (1997) Can this be done? (1997) Un[url]ize (1999) Logging purchases (1997) Ok here is a question? (1997) Bug Report, maybe (1997) select multiple (1997) Caching problem... (2000) Webcatalog Future?!? (2000) read and write you own cookies with webcat (1997) Dummy Credit Card Number for debug? (1997) Question on the sandbox (2003) Re:Dumb Question about Docs (1997) Not really WebCat (1997) Protect tag for large groups? (1999)