Re: form validator issue
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61507
interpreted = N
texte = >I put this on the input form page:>>[FormVariables]>[index],[name],[value]
>[/FormVariables]>>>this is one of the lines I get>on the form validate page:>>8,Content-Disposition: form-data; name="BlogText",>>>still appears blank to me>????Your formvariable test below should have shown you the problem inherent in using enctype="multipart/form-data; that is, the name themselves are transformed into a more complex string. In your validator, you're expecting to find a variable named "Blogtext" but now it's actually called "Content-Disposition: form-data; name="BlogText"", so your validator never even sees [blogtext] to validate for it. It sees [Content-Disposition: form-data; name="BlogText"] though.With my uploads I use formvariables and pull out the names using middle, and use [text] to rewrite the variables with the original names I intended. Then the following validation code you expect will work. I think the sample you downloaded probably has something like this in it. It differentiates between the one variable holding the file itself, and the others by looking for the presence of "filename" in the string. Sounds complicated and looks ugly, but once you wrap your head around it, it makes sense.Terry-------------------------------------------------------------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:
>I put this on the input form page:>>[formvariables]>[index],[name],[value]
>[/FormVariables]>>>this is one of the lines I get>on the form validate page:>>8,Content-Disposition: form-data; name="BlogText",>>>still appears blank to me>????Your formvariable test below should have shown you the problem inherent in using enctype="multipart/form-data; that is, the name themselves are transformed into a more complex string. In your validator, you're expecting to find a variable named "Blogtext" but now it's actually called "Content-Disposition: form-data; name="BlogText"", so your validator never even sees [blogtext] to validate for it. It sees [Content-Disposition: form-data; name="BlogText"] though.With my uploads I use formvariables and pull out the names using middle, and use [text] to rewrite the variables with the original names I intended. Then the following validation code you expect will work. I think the sample you downloaded probably has something like this in it. It differentiates between the one variable holding the file itself, and the others by looking for the presence of "filename" in the string. Sounds complicated and looks ugly, but once you wrap your head around it, it makes sense.Terry-------------------------------------------------------------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/
Terry Wilson
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:
Server slowing down. (1997)
The Box - (2003)
Triggers under MacOSx (2003)
passing variables - problem (1997)
Sorting search results (1998)
WebStar Questions ... (2000)
[WebDNA] (2014)
(2000)
quotes and truncating? (1997)
PCS Customer submissions ? (1997)
WebCat2 as a chat server? (1997)
Color options for items (1999)
PIXO support (1997)
[OT] 'Email this story to a friend' (2003)
How many lookups does it take ... (2003)
OS X, Communigate Pro & Line Breaks (2003)
Fun with dates (1997)
Nested tags count question (1997)
Firesite cache vs webcat cache (1997)
Site Search Suggestions (2004)