Sounds like a problem with register_globals.
If you're using a form and the POST method, then you should use $POST['sword']
If you're using the GET method (i.e. the query string), then use $GET['sword]
If you're using a cookie, then it is $_COOKIE['sword']
Read the PHP manual under reserved words for more information.