PDA

View Full Version : strip function


songboy
07-24-2009, 10:31 PM
I've used an ereg on an email form input to prevent unwanted characters. It works fine. I've also tried to incorporate a trim event into my script. However, when I test it by leaving spaces at the left of my email form entry, I get my error message just as if I'd used a wrong character. I thought the strip function would deal with the left side spaces.
I would be grateful for any advice.
Songboy

edbr
07-25-2009, 02:17 AM
me too. but do you really need both?