This line:
int test=Integer.parseInt(FirstName);
isn't even close to being PHP code - must be some other language.
EDIT: Just re-read your post... and now I'm even more puzzled.
For one thing, the $HTTP(source)VARS type of variables have been deprecated for a long time now; you should be using $_POST.
For another... why are you even trying to convert this 'lastName' entity into an integer? Doesn't seem to make much sense... what type of integer is "Smith" or any other last name?
EDIT2: Woops.. make that a first name, not last...