Re: Form Problem with !

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34923
interpreted = N
texte = Always wrap both terms in a showif with [url][/url]'s. e.g. [showif [url][title][/url]=] and [showif [url][title][/url]=[url]Limit to 40 characters[/url]]To understand why this is, assume the user has entered Bite Me! in the title field. Now do the substitution: [showif Bite Me!=]which is true, since Bite Me is not the same as =...John PeacockRichard Kirsner wrote: > > I have a form to collect some information that is ultimately appended to > a data base. When the form is submitted, it goes to the next page that > contains some error checking to see if the field is either blank, or in > some cases, to see if the field contains default instructional > information. The problem is that if any of the fields contain an > exclaimation (!), the error checking seems to think that none of the > tests are passed and displays the associated error message. I've fooled > around with the [url], [input] and [convertchars] contexts, but nothing > seems to work. The actual code follows. > > Any suggestions will be appreciated. > > Thanks, > Richard Kirsner > > CODE: > > > > > > > > > > > > > > > > >
BT,sans-serif>Submitted by [header1]:

FACE=Arial,Helvetica,Univers,Zurich BT,sans-serif>Event Title: >   MAXLENGTH=40 value=Limit to 40 characters>
FACE=Arial,Helvetica,Univers,Zurich BT,sans-serif>Event > Summary:  

NAME=SubmitEvent VALUE=Submit Event>
> > 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 Event > Summary - [summary] text

  • >
    [/showif] > > [showif [summary]=]

    >

    > [math show=F]error=[error]+1[/math] >
  • Use your Browser's back arrow and enter an Event > Summary - [summary] - sum blank

  • >
    [/showif] > > [showif [countchars][summary][/countchars]>128]

    > >

    width=400>
  • The Event Summary can only be 128 > characters 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/------------------------------------------------------------- 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:

        
    1. Re: Form Problem with ! (John Peacock 2000)
    2. Form Problem with ! (Richard Kirsner 2000)
    Always wrap both terms in a showif with [url][/url]'s. e.g. [showif [url][title][/url]=] and [showif [url][title][/url]=[url]Limit to 40 characters[/url]]To understand why this is, assume the user has entered Bite Me! in the title field. Now do the substitution: [showif Bite Me!=]which is true, since Bite Me is not the same as =...John PeacockRichard Kirsner wrote: > > I have a form to collect some information that is ultimately appended to > a data base. When the form is submitted, it goes to the next page that > contains some error checking to see if the field is either blank, or in > some cases, to see if the field contains default instructional > information. The problem is that if any of the fields contain an > exclaimation (!), the error checking seems to think that none of the > tests are passed and displays the associated error message. I've fooled > around with the [url], [input] and [convertchars] contexts, but nothing > seems to work. The actual code follows. > > Any suggestions will be appreciated. > > Thanks, > Richard Kirsner > > CODE: > > > > [cart]> > > > [cart]> > > > > > > > > > >
    BT,sans-serif>Submitted by [header1]:

    FACE=Arial,Helvetica,Univers,Zurich BT,sans-serif>Event Title: >   MAXLENGTH=40 value=Limit to 40 characters>
    FACE=Arial,Helvetica,Univers,Zurich BT,sans-serif>Event > Summary:  

    NAME=SubmitEvent VALUE=Submit Event>
    > > 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 Event > Summary - [summary] text

  • >
    [/showif] > > [showif [summary]=]

    >

    > [math show=F]error=[error]+1[/math] >
  • Use your Browser's back arrow and enter an Event > Summary - [summary] - sum blank

  • >
    [/showif] > > [showif [countchars][summary][/countchars]>128]

    > >

    width=400>
  • The Event Summary can only be 128 > characters 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/------------------------------------------------------------- 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/ John Peacock

    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:

    Almost a there but..bye bye NetCloak (1997) Web Catalog and Net Cloak (1998) [searchString] (1997) Problem displaying search result (1997) Searching for words equal to A or equal to B (1999) Most Efficiant Way to do restricted Areas (1997) re:check boxes (1997) orders being printed (1998) [HIDEIF] inside [FOUNDITEM] (1997) RE: Problems reading files created by WC (1997) Looking up two prices in database? (1997) [WebDNA] Pretty URLS (2011) Big Databases (1997) [WebDNA] form data compared to existing database (2016) Multiple Passwords (1997) WebDNA - fun to compare (2005) Order not created error (never mind) (1997) Claris HomePage messes up the code (1997) RE: Formulas.db + Users.db (1997) SKU (1997)