-if (isset($_POST['ok']))
-{
- $result = SQL_QUERY("SELECT userid, email FROM "._MYSQL_PREFIX."_user_data WHERE status='CONFIRMED' AND nl_receive='Y' ORDER BY userid", __FILE__, __LINE__);
- if (SQL_NUMROWS($result) > 0)
- {
+if (IS_FORM_SENT()) {
+ $result = SQL_QUERY("SELECT userid, email
+FROM `{!_MYSQL_PREFIX!}_user_data`
+WHERE `status`='CONFIRMED' AND nl_receive='Y'
+ORDER BY userid ASC", __FILE__, __LINE__);
+ if (SQL_NUMROWS($result) > 0) {