Php....i think i got it

i wrote a php form to send message to my email from flash but i dunno how to check it or if it is right?

any ideas?


<?php

// get inputs
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];

// recievers email
$to = "[email protected]";

// set email message to me
$msg = "Name: $name 

Email: $email 

Message: $message";

// senders details
$sender = "From: $name <$email>";

// send the email
mail("[email protected]", $subject, $msg, $sender);

?>