Splitting Strings

I have 2 attributes namely firstname and lastname for me there is type ahead search and have to select a name available in the list that I have to store Frist Name in firstname attrubute and middle name and last name in lastname attribute. do I need to create a new attribute and save in that and then spiltt?? can you please guide me..
1 answers

First download module Person and see how Person_NewEdit handles first- middle- and lastname. There attribute FullName is persistent and can be used for your ‘type ahead search’.

You will never have to split FullName because in the same object you still also have first- middle- and lastname. It is a small piece of redundant information, but well worth it because the handling of the attributes remains clear and easy.