Form Problem with !
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 34921
interpreted = N
texte = I have a form to collect some information that is ultimately appended toa data base. When the form is submitted, it goes to the next page thatcontains some error checking to see if the field is either blank, or insome cases, to see if the field contains default instructionalinformation. The problem is that if any of the fields contain anexclaimation (!), the error checking seems to think that none of thetests are passed and displays the associated error message. I've fooledaround with the [url], [input] and [convertchars] contexts, but nothingseems to work. The actual code follows.Any suggestions will be appreciated.Thanks,Richard KirsnerCODE:
On the next page (event2.html) I have some error checking:[math show=F]error=0[/math][showif [title]=]
[math show=F]error=[error]+1[/math]Use your Browser's back arrow and enter an Event Title |
[/showif][showif [title]=Limit to 40 characters][math show=F]error=[error]+1[/math]Use your Browser's back arrow and enter an Event Title |
[/showif][showif [summary]=Limit to 128 characters][math show=F]error=[error]+1[/math]Use your Browser's back arrow and enter an EventSummary - [summary] text |
[/showif][showif [summary]=][math show=F]error=[error]+1[/math]Use your Browser's back arrow and enter an EventSummary - [summary] - sum blank |
[/showif][showif [countchars][summary][/countchars]>128]The Event Summary can only be 128characters long. Use your Browser's back arrow and shorten your Summary |
[/showif]
[hideif [countchars][summary][/countchars]>128][hideif [math]error[/math]!0]** The Rest of the page goes here **[/hideif]-------------------------------------------------------------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:
I have a form to collect some information that is ultimately appended toa data base. When the form is submitted, it goes to the next page thatcontains some error checking to see if the field is either blank, or insome cases, to see if the field contains default instructionalinformation. The problem is that if any of the fields contain anexclaimation (!), the error checking seems to think that none of thetests are passed and displays the associated error message. I've fooledaround with the [url], [input] and [convertchars] contexts, but nothingseems to work. The actual code follows.Any suggestions will be appreciated.Thanks,Richard KirsnerCODE:On the next page (event2.html) I have some error checking:[math show=F]error=0[/math][showif [title]=][math show=F]error=[error]+1[/math]Use your Browser's back arrow and enter an Event Title |
[/showif][showif [title]=Limit to 40 characters][math show=F]error=[error]+1[/math]Use your Browser's back arrow and enter an Event Title |
[/showif][showif [summary]=Limit to 128 characters][math show=F]error=[error]+1[/math]Use your Browser's back arrow and enter an EventSummary - [summary] text |
[/showif][showif [summary]=][math show=F]error=[error]+1[/math]Use your Browser's back arrow and enter an EventSummary - [summary] - sum blank |
[/showif][showif [countchars][summary][/countchars]>128]The Event Summary can only be 128characters long. Use your Browser's back arrow and shorten your Summary |
[/showif]
[hideif [countchars][summary][/countchars]>128][hideif [math]error[/math]!0]** The Rest of the page goes here **[/hideif]-------------------------------------------------------------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/
Richard Kirsner
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:
Email within tmpl ? (1997)
docs for WebCatalog2 (1997)
passing large amount of text in post form (2005)
Mime-Version in email header (1997)
Locking up with WebCatalog... (1997)
password authentication schemes (2003)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
syntax question, not in online refernce (1997)
docs for WebCatalog2 (1997)
WebCatalog Mac 2.1b3 (1997)
Retrieve deleted files (2001)
Emailer (1997)
cannot delete last admin (1999)
Popup Menu Options (1998)
Newbie Help Needed (1998)
emailer on Windows Beta 18 (1997)
multiple search commands (1997)
WC2.0 Memory Requirements (1997)
[WebDNA] hide [DOS] command strings on resulting page (2016)
relational db question (2002)