Semi-Simple PHP Email form gone wrong

Hi I need your help.
This problem seems simple, but I find myself blind to the solution.

I usually work with PHP email forms with Flash.
But I needed a new PHP script to handle a HTML form

I found a tutorial on Kirupa.com and I followed that.
I think it was this one: http://www.kirupa.com/web/php_contact_form.htm

Its simple, it works.

But when I tried applying its PHP script to the form I’ve got previously built into a web page it triggers the ‘error’ section of the PHP code instead of launching the email. I don’t know why.

Heres where I tested the form from the tutorial: http://albertaintegrated.com/tests/form.html

Heres the PHP code for that Form:

<?php
if(isset($_POST['submit'])) {
$to = "NoSpam@myEmail.ca";
$subject = "Form Tutorial";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
 
$body = "From: $name_field
 E-Mail: $email_field
 Message:
 $message";
 
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>

Here’s the Form I tried applying the PHP script to:
http://albertaintegrated.com/kirupa/Kirupa-menutest/survivorform.html

Heres the code for the altered PHP script:

<?php

if(isset($_POST['submit'])) {
$to = "noSpam@myEmail.ca";
$subject = "Teen Survivor Book Challenge";
$php_name = $_POST['user_name'];
$php_rating = $_POST['user_rating'];
$php_title = $_POST['user_title'];
$php_reason = $_POST['user_reason'];
 
$body = "Name: $php_name
 Book tile: $php_title
 Rating 1-5: $php_rating
 What did you like most about the book you read: $php_reason";
 
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>

I don’t know why it does it, but the form contacts the PHP script and the script just goes Blarg.

I couldn’t see anything as simple as a missing or badly placed character or quote. I even through a copy of the custom form into the same directory as the test Form, and pointed it to the Test forms PHP script. Same problem as before. Its odd, other then the fact that the New form is surrounded by CSS and Div Tags, I don’t see why the PHP script should have a problem. Its not like the Form is having trouble contacting the script.

Any and All help would be appreciated!
I’m really stuck on this one, no Idea where to start looking for the solution.

Thanks.

-Lem