Insert row in mysql using php

Can anyone help me on this:

I have a form on form.php file


echo "
<form name='form1' method='post' action='process.php'>
 <input type='text' name='textfield' value='$message'>
 <input type='submit' name='Submit' value='Submit'>
</form>";

Now on process.php file i have:


$query = "Insert into table (info) values ('$message')";
$result = mysql_query($query) or die('Query failed');

is this script right? when i checked mysql table, there’s no new row.