numero = 47988
interpreted = N
texte = My bad, it did work if I take out the obvious:[showif [url][digital_copy][/url]=[url][digital_copy][/url]][redirect reprintcard1.htm?cart=[cart]&design=current&error=2][/showif]Derrr....GK| Sorry, that should read, try wrapping all of the [digital_copy]'s in| [URL][/URL].|| > Gary,| >| > Try wrapping all of the [showif [digital_copy]=] in [URL][/URL]. When| > used in a [SHOWIF], the forward slash of a Windows file pathname can| > be interpreted as divisible by. This is from the html docs:| >| > Tip: make sure neither side of the comparison equation contains any of| > the special comparison letters listed above. For example, [ShowIf I'm| > Friendly! Are you?=[question]] contains an exclamation point inside| > the sentence being compared, so WebDNA sees this as I'm Friendly is| > not equal to Are you?=[question], which is not what the author| > meant to compare.| >| > The solution is to wrap each side of the comparison with [URL]| > contexts, like this:| > [ShowIf [URL]I'm Friendly! Are you?[/URL]=[URL][question][/URL]]. This| > causes any embedded !=>< symbols to be converted to their URL| > equivalents, which can then be compared correctly.| >| > hth,| >| > andy| >| >| >> Howdy,| >>| >> I have a page with a form where a user selects an image for upload| >> using:| >> | >>| >> On the next page, I have simple showif's to detect if the user| >> actually| >> attached a file, and if not, redirect them back to the form with an| >> error:| >>| >> [showif [digital_copy]=]| >> [redirect reprintcard1.htm?cart=[cart]&design=current&error=2]| >> [/showif]| >> [showif [digital_copy]=[url][digital_copy][/url]]| >> [redirect reprintcard1.htm?cart=[cart]&design=current&error=2]| >> [/showif]| >>| >> Even if I select a file, I'm redirected back to the form with the| >> error.| >> Formvariables shows:| >> The following are all the form variables available to this page:| >> 1,cart,10458583942864| >> 2,current_card,digital| >> 3,digital_copy,C:\Inetpub\wwwroot\silkbizcards\silk\admin_images\dp_b3| >> .gif| >>| >> I can comment out one or the other redirects above and it will still| >> trigger| >> the redirect, i.e., it's showing as both being empty and being| >> [digital_copy]. I can comment out the [redirect] in either or and| >> just put| >> a text statement in there and that statement will show.| >>| >> Does the input type of text not carry a value, though it shows as| >> having one| >> in formvariables?| >>| >> GK-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Re: input type=file has no value? (Gary Krockover 2003)
My bad, it did work if I take out the obvious:[showif [url][digital_copy][/url]=[url][digital_copy][/url]][redirect reprintcard1.htm?cart=[cart]&design=current&error=2][/showif]Derrr....GK| Sorry, that should read, try wrapping all of the [digital_copy]'s in| [url][/URL].|| > Gary,| >| > Try wrapping all of the [showif [digital_copy]=] in [url][/URL]. When| > used in a [showif], the forward slash of a Windows file pathname can| > be interpreted as divisible by. This is from the html docs:| >| > Tip: make sure neither side of the comparison equation contains any of| > the special comparison letters listed above. For example, [ShowIf I'm| > Friendly! Are you?=[question]] contains an exclamation point inside| > the sentence being compared, so WebDNA sees this as I'm Friendly is| > not equal to Are you?=[question], which is not what the author| > meant to compare.| >| > The solution is to wrap each side of the comparison with [url]| > contexts, like this:| > [ShowIf [url]I'm Friendly! Are you?[/URL]=[url][question][/URL]]. This| > causes any embedded !=>< symbols to be converted to their URL| > equivalents, which can then be compared correctly.| >| > hth,| >| > andy| >| >| >> Howdy,| >>| >> I have a page with a form where a user selects an image for upload| >> using:| >> | >>| >> On the next page, I have simple showif's to detect if the user| >> actually| >> attached a file, and if not, redirect them back to the form with an| >> error:| >>| >> [showif [digital_copy]=]| >> [redirect reprintcard1.htm?cart=[cart]&design=current&error=2]| >> [/showif]| >> [showif [digital_copy]=[url][digital_copy][/url]]| >> [redirect reprintcard1.htm?cart=[cart]&design=current&error=2]| >> [/showif]| >>| >> Even if I select a file, I'm redirected back to the form with the| >> error.| >> Formvariables shows:| >> The following are all the form variables available to this page:| >> 1,cart,10458583942864| >> 2,current_card,digital| >> 3,digital_copy,C:\Inetpub\wwwroot\silkbizcards\silk\admin_images\dp_b3| >> .gif| >>| >> I can comment out one or the other redirects above and it will still| >> trigger| >> the redirect, i.e., it's showing as both being empty and being| >> [digital_copy]. I can comment out the [redirect] in either or and| >> just put| >> a text statement in there and that statement will show.| >>| >> Does the input type of text not carry a value, though it shows as| >> having one| >> in formvariables?| >>| >> GK-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Gary Krockover
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...