![]() |
|
"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
"Thanks Ken for the helpful code ..." You're welcome. "With regards changing the form, that won't be happening as explained in Re^2: Split first and last names" That's new information (only posted an hour or so ago) but does add some clarity. "... full name (... envelope) ... firstname ... salutation." Perhaps something along these lines:
Output:
Note that I allowed three punctuation characters ('_-); alter as necessary. I know, from earlier posts, that you're across SQL injection issues. Be aware, that between reading data from the web and supplying it to SQL, there may be other code injection issues. Without knowing anything more about your code, that's something you'll need to assess for yourself: I didn't include any validation; but you should. "As for the database storage..." I looks like most of that would be covered by "If we need extra information ... we ask for it ...". The majority wouldn't be covered by user input anyway (e.g. nickname, preferred names). Again, something for you to determine using the same principles as above (i.e. limited regex capture, code injection & validation). — Ken In reply to Re^3: Split first and last names
by kcott
|
|