- list($email, $salut, $surname, $family) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
- define('__EMAIL' , $email);
- define('__SALUT' , TRANSLATE_SEX($salut));
- define('__SURNAME', $surname);
- define('__FAMILY' , $family);
+ $content = SQL_FETCHARRAY($result);
+
+ // Prepare data for the template
+ $content['gender'] = translateGender($content['gender']);
+ $content['reason'] = secureString(postRequestParameter('reason'));