I've taken the code directly form this book and tried to use it and I get this error.
please help me out !!
That's not terribly helpful, can you post the exact error output and perhaps post the code on and around line 32?
It looks to me like you're closing PHP scope early (?>), and some of your PHP code is being sent to the browser as plain HTML.
I think the error comes somewhere in the function error_message() and user_message() ?...
<TD WIDTH="70%"><TEXTAREA NAME="mail_body" ROWS="16"
can you see the problem ?
Most likely, you have register_globals set to "off" in php.ini. The actual error message that PHP issues (what's shown in IE) should tell you the name of the undefined variable.
Look in php.ini (or run a <?php phpinfo(); ?> script) and verify your register globals setting.
If that's not your problem, let us know.
