To clarify what was written before, you have this:
$query = "SELECT 'name', 'surname', 'email' FROM careers WHERE 'email' = "$_POST['email']" AND 'surname' = "$_POST['surname']"";
$result = mysql_query($query);
But you should either put the POST array values in curly braces {} and single quotes, or concatenated them into your string:
// I like concatenation:
$query = "SELECT 'name' FROM careers WHERE 'email' = '" . $_POST['email'] . "' AND ...";
PS: However, I would never run a query using direct input from a user like this.
you MUST clean / validate user input before running the query, or your application will be at risk or hacking and so forth.
Secondly, look at mysql_real_escape_string()function.
SO,
// write a funciton "validate_email()" and use it to check formatting and illegal chars:
$clean['email'] = validate_email($_POST['email']);
$query = "
SELECT 'name'
FROM careers
WHERE 'email' = '" . mysql_real_escape_string($clean['email']) . "'
AND ...";