syntax error unexpected T_ENCAPSED… php-Collection of common programming errors

In PHP, every statement ends with a semocolon.

So add a semocolon (;) to your line.

Again, you are not adding single quotes (') to your posted values.

So, in total, update your query to:

"INSERT INTO feedback_test (FirstName, LastName, Age) VALUES
('$_POST[\'firstname\']','$_POST[\'lastname\']','$_POST[\'age\']')";