[ic] Strip spaces from email

Ethan E. Rowe ethan at the-rowes.com
Wed Apr 14 10:20:12 EDT 2004

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 

-Ethan Rowe
National Braille Press, Inc.
Information System Manager

More information about the interchange-users mailing list