Re: Odd <textarea> Behavior with variables
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 43341
interpreted = N
texte = You should always wrap [url] around the value of any user-typed form variable when testing its value:[showif [url][clDescription][/url]=]If the value entered contains any comparison operators (=, !, <, >, ~, ^, %) then this will prevent WebDNA from thinking that character is the operator and thus not performing the test you intended.- brianAt 3:02 PM 9/12/02, Robert Wade wrote:>Thanks for the reply Donovan,>>I have quadruple checked my variables! They are coming in fine >before the showifs, just>as I had entered them. I changed cl_description to cl_desc just >to see if it was>having a problem with the name of the variable, and it still funked >out. Then I changed>it back to the old way, and now it works...???? I know it wasn't a >type 'cause I used a>find and replace to change the names back and forth rather than >typing them. I'm still>confused as hell, but at least now it works.>>Weird.>>Donovan wrote:>>> Robert Wade wrote:>>>> > Hello all,>> >>> > I have a form where there area couple of textareas. One in >>particular keeps>> > giving me a problem. Here is the text area...>> >>> >
>> >>> > In the page the form posts to, I have a simple script that >>checks to see if the>> > required fields were entered, and it sets a generic text >>variable (e_id=012369), if>> > one or more of them is blank. If that variable is set, the user >>redirects back to>> > the form and is directed to fill out the required fields. >>Simple. The code is as>> > follows....>> >>> > [!]===Begin Checking for required fields===[/!]>> > [showif [cl_title]=][text show=f]e_id=012369[/text][/showif]>> > [showif [cl_description]=][text show=f]e_id=012369[/text][/showif]>> > [showif [cl_price]=][text show=f]e_id=012369[/text][/showif]>> > [showif [cl_shipping]=][text show=f]e_id=012369[/text][/showif]>> > [showif [cl_contact]=][text show=f]e_id=012369[/text][/showif]>>>> show=f is not needed.>>>> Robert, I would say trippleXtripple check your vars. ;-)>> what are the values just before the showifs?>>>> >>> >>> > [!]===Redirect if initial errors found===[/!]>> > [showif [e_id]=012369]>> > [redirect classifieds_start.html?cl_id=[cl_id]&e_id=[url][e_id][/url]]>> > [/showif]>> >>> > Even when every single input on the form is filled out, I keep >>getting redirected>> > back with the error.>>>> change the last digit of the error and change your error showif to:>> [e_id]~012369>>>> Then you will know which error is redirecting.>>>> D>>>> > By process of elimination I have narrowed it down to the>> > cl_description textarea. I also put a formvariables loop in >>the posting page to>> > make sure that the data is coming through, and it is, but for >>some reason the code>> > above is setting that variable. I have double checked and even >>re-written that> > > portion of code just to make sure I didn't misspell anything. >No luck. There is> > > one other texarea and it works find (cl_contact). Anyone have a clue?> > >> > > -Robert> > >-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =><= Macintosh, Internet and Multimedia http://www.artsofauburn.com =><= Development and Consulting =>-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
You should always wrap [url] around the value of any user-typed form variable when testing its value:[showif [url][clDescription][/url]=]If the value entered contains any comparison operators (=, !, <, >, ~, ^, %) then this will prevent WebDNA from thinking that character is the operator and thus not performing the test you intended.- brianAt 3:02 PM 9/12/02, Robert Wade wrote:>Thanks for the reply Donovan,>>I have quadruple checked my variables! They are coming in fine >before the showifs, just>as I had entered them. I changed cl_description to cl_desc just >to see if it was>having a problem with the name of the variable, and it still funked >out. Then I changed>it back to the old way, and now it works...???? I know it wasn't a >type 'cause I used a>find and replace to change the names back and forth rather than >typing them. I'm still>confused as hell, but at least now it works.>>Weird.>>Donovan wrote:>>> Robert Wade wrote:>>>> > Hello all,>> >>> > I have a form where there area couple of textareas. One in >>particular keeps>> > giving me a problem. Here is the text area...>> >>> > >> >>> > In the page the form posts to, I have a simple script that >>checks to see if the>> > required fields were entered, and it sets a generic text >>variable (e_id=012369), if>> > one or more of them is blank. If that variable is set, the user >>redirects back to>> > the form and is directed to fill out the required fields. >>Simple. The code is as>> > follows....>> >>> > [!]===Begin Checking for required fields===[/!]>> > [showif [cl_title]=][text show=f]e_id=012369[/text][/showif]>> > [showif [cl_description]=][text show=f]e_id=012369[/text][/showif]>> > [showif [cl_price]=][text show=f]e_id=012369[/text][/showif]>> > [showif [cl_shipping]=][text show=f]e_id=012369[/text][/showif]>> > [showif [cl_contact]=][text show=f]e_id=012369[/text][/showif]>>>> show=f is not needed.>>>> Robert, I would say trippleXtripple check your vars. ;-)>> what are the values just before the showifs?>>>> >>> >>> > [!]===Redirect if initial errors found===[/!]>> > [showif [e_id]=012369]>> > [redirect classifieds_start.html?cl_id=[cl_id]&e_id=[url][e_id][/url]]>> > [/showif]>> >>> > Even when every single input on the form is filled out, I keep >>getting redirected>> > back with the error.>>>> change the last digit of the error and change your error showif to:>> [e_id]~012369>>>> Then you will know which error is redirecting.>>>> D>>>> > By process of elimination I have narrowed it down to the>> > cl_description textarea. I also put a formvariables loop in >>the posting page to>> > make sure that the data is coming through, and it is, but for >>some reason the code>> > above is setting that variable. I have double checked and even >>re-written that> > > portion of code just to make sure I didn't misspell anything. >No luck. There is> > > one other texarea and it works find (cl_contact). Anyone have a clue?> > >> > > -Robert> > >-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =><= Macintosh, Internet and Multimedia http://www.artsofauburn.com =><= Development and Consulting =>-------------------------------------------------------------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://search.smithmicro.com/
Brian Fries
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:
Use of Back and Reload Buttons on ShoppingCart page? (1997)
item sorting (1997)
emailer setup (1997)
ANNOUNCE: FREE ProcessWatch Webmaster utility (1998)
Changing Date Format in Field (1999)
Summary search -- speed (1997)
Erotic Sites (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
[input]?? (1998)
Protect vs Authenicate (1997)
ISAPI WC6a and Windows 2003 Web Edition (2006)
searchable list archive (1997)
2 easy questions re: [showif] and [sendmail] (1997)
[ConvertChars] problem (1997)
HELP!! problems with e-mail from WebCAT (1998)
Banners (1997)
Webstar 1.3.1 PPC (1997)
Document Contains No Data! (1997)
Question re: Format command (2000)
Comments in db? (1997)