ASP cannot understand what the user are typing. So if you want to store
document.getElementById("editPtLastName")
into session, you should do it after the form is submitted.
For example, your form's action is "PtProcess.asp", so in your PtProcess.asp file, you could code like this:
Session("last") = Request("editPtLastName")