That is an HTML form, which you should not attempt to use in strory formats, at least not withou significant modification.
I'd suggest something like the following if you wanted the first/last names as separate entities:
''First name:''
<<textbox "$pcFirstName" "">>
''Last name:''
<<textbox "$pcLastName" "">>
Or, if you wanted the name as a single entity, something like:
''Name:''
<<textbox "$pcName" "">>
The <<textbox>> macro automatically stores the player input into the given variable name, you don't have to do anything else for it to work.
You may want to do some sanity checking on the value(s) to ensure the player hasn't done something silly like leaving the value blank/empty. As an example of that:
''First name:''
<<textbox "$pcFirstName" "">>
''Last name:''
<<textbox "$pcLastName" "">>
<<button "Continue">>
<<set $pcFirstName to $pcFirstName.trim()>>
<<set $pcLastName to $pcLastName.trim()>>
<<if $pcFirstName is "">>
<<replace "#input-error">>Please enter a first name.<</replace>>
<<elseif $pcLastName is "">>
<<replace "#input-error">>Please enter a last name.<</replace>>
<<else>>
<<goto "Next Passage">>
<</if>>
<</button>>@@#input-error;@@
And the style for the #input-error element: (goes in Story Stylesheet)
#input-error {
color: red;
margin-left: 2em;
}
SEE: <<textbox>>, <<button>>, <<goto>>, <String>.trim().