Re: Custom Tags or Modular Code

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37021
interpreted = N
texte = Not necessarily. You can pass variables on to include-files such as:[include file=myinclude.inc&email=[emailfromform]]this way, within the myinclude.inc - file you can use [email] whilst on the main page you can have a different name.Ciao,PeterOn Fri, 06 Jul 2001 09:25:04 Andrew Simpson wrote: > on 6/7/01 9:07 AM, Brian Boegershausen at brian@orderbywire.com > wrote: > > > Write your code to take an email check it, and return T if it is > okay, and F > > if it is bad. > > Make it an include file and put it in the webcat root. > > Then you can use it on anysite on the server > > [showif [include file=^emailchecker.inc]=T]The email is > good[/showif] > > > > Brian Boegershausen > > ----- Original Message ----- > > From: Andrew Simpson > > To: WebCatalog Talk > > Sent: Thursday, July 05, 2001 4:59 PM > > Subject: Custom Tags or Modular Code > > > > > >> Is there any way you can define custom tags in webDNA. > >> > >> For Example I have written a small validation routine to check > email > >> addresses so that they are valid before using the [sendmail] tag. > >> > >> Is it possible to encapsulate this in a custom tag or preferably > define a > >> function containing this routine that could be called/ passed the > string > > and > >> return some boolean value indicating validity. > >> > >> > >> ------------------------------------------------------------- > >> 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/ > > > > So all I would have to do is ensure that the variable passed to the > template, containing the email addresses to check, are always the > same??? > > Yes? > > > ------------------------------------------------------------- > 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: Custom Tags or Modular Code (Peter Werno 2001)
  2. Re: Custom Tags or Modular Code (Andrew Simpson 2001)
  3. Re: Custom Tags or Modular Code (Brian Boegershausen 2001)
  4. Custom Tags or Modular Code (Andrew Simpson 2001)
  5. Re: Custom Tags or Modular Code (Dale Therio 2001)
Not necessarily. You can pass variables on to include-files such as:[include file=myinclude.inc&email=[emailfromform]]this way, within the myinclude.inc - file you can use [email] whilst on the main page you can have a different name.Ciao,PeterOn Fri, 06 Jul 2001 09:25:04 Andrew Simpson wrote: > on 6/7/01 9:07 AM, Brian Boegershausen at brian@orderbywire.com > wrote: > > > Write your code to take an email check it, and return T if it is > okay, and F > > if it is bad. > > Make it an include file and put it in the webcat root. > > Then you can use it on anysite on the server > > [showif [include file=^emailchecker.inc]=T]The email is > good[/showif] > > > > Brian Boegershausen > > ----- Original Message ----- > > From: Andrew Simpson > > To: WebCatalog Talk > > Sent: Thursday, July 05, 2001 4:59 PM > > Subject: Custom Tags or Modular Code > > > > > >> Is there any way you can define custom tags in webDNA. > >> > >> For Example I have written a small validation routine to check > email > >> addresses so that they are valid before using the [sendmail] tag. > >> > >> Is it possible to encapsulate this in a custom tag or preferably > define a > >> function containing this routine that could be called/ passed the > string > > and > >> return some boolean value indicating validity. > >> > >> > >> ------------------------------------------------------------- > >> 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/ > > > > So all I would have to do is ensure that the variable passed to the > template, containing the email addresses to check, are always the > same??? > > Yes? > > > ------------------------------------------------------------- > 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/ Peter Werno

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:

Using Plug-In while running 1.6.1 (1997) Search bug. Help (2002) Need relative path explanation (1997) WebCat2 several catalogs? (1997) WCS Newbie question (1997) F*** you (1998) Protect (1997) WC2.0 Memory Requirements (1997) Displaying xx number of characters (1997) To Err or Not Custom Error (1999) WebCat2b15MacPlugin - [protect] (1997) CyberCash Transaction Cost (1999) RE: HTTP Header info (1997) Colors (2000) Digest for 09-30-97 (1997) Sorting Numbers (1997) CC: (1998) Text variables do not show (1999) problems with 2 tags shakur (1997) Re[2]: running WebCatalog under Apache on NT? (2000)