[ic] Strip spaces from email

Grant emailgrant123b at yahoo.com
Wed Apr 14 13:27:53 EDT 2004


--- Mike Heins <mike at perusion.com> wrote:
> Quoting Ethan E. Rowe (ethan at the-rowes.com):
> > Susan Misnick wrote:
> > 
> > >Hi, I'd like to strip leading or trailing spaces
> from the email field, 
> > >which seems very straightforward, but I can't
> figure out where to put 
> > >the code.  Hints?
> > >Thanks,
> > >Susan
> > 
> > It depends on what action is being performed; if
> this is in relation to 
> > posting an order to the database, one thing would
> be to put it in 
> > /etc/log_transaction.  However, if you want to do
> something in a less 
> > sensitive area, you could put a little
> [perl]...[/perl] block in the 
> > form profile with a regular expression to trim the
> leading spaces.  I'm 
> > still on the steep part of the Interchange
> learning curve myself, 
> > however, so it's highly possible somebody could
> offer you a more elegant 
> > solution.
> 
> It's as easy as:
> 
> 	[value name=email filter=strip]

I thought I'd mention these too:

[strip][/strip]
[strip interpolate="1"][/strip]

- Grant


	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html


More information about the interchange-users mailing list