It should be pretty simple for you to figure out if you wrote the code you have already. It is simply a matter of combining the fname and lname in one case and in the other a matter of combining the first letter from each of those.

Your question however is worded incorrectly as you are not reading anything with an update statement. Your values are coming from textboxes