U propably have register_globals set to off which is good. That means that you cannot access straight with $txtkid, but you need to use $POST['txtkid']. Also $PHP_SELF should be $SERVER['PHP_SELF'] (or actually $_SERVER['SCRIPT_NAME'] to be more secure).
Read more in the manual.
Also sessions are not handled that way and its deprecated(althought it works).
Old way:
session_register("sess_kid");
New way you just set the session what you need:
$_SESSION['sess_kid'] = 'something';