In recent releases of PHP, the php.ini directive "register_globals" is set to "Off" by default; so the recommended/preferred method of coding variables has changed. Many tutorials and texts/books were written prior to this change, so "I copied this from a book, perfectly" may not have any effect on your situation. You now must call variables from the "SUPERGLOBAL" arrays. Use $POST['var'] for a POSTED form; $GET['var'] to obtain a value from a URL. Cookies are $COOKIE['var'], Session variables are now $SESSION['var'], etc.
i hope this will help u
bye
sharma ..