Hey there :)
I'm trying to figure out what the heck happened...
Let's say I have an array of user_id that I need send e-mail to. I programmed button:
echo "<form method='post'>";
echo "<input type='submit' value='Perspėti narius' name='mailsender' class='button'></p>";
echo "</form>";
and here's actual function:
if (isset($_POST['mailsender'])){
require_once BASEDIR."includes/sendmail_include.php";
$pavadinimas = "VWKLUBAS.LT anketų automatinis BOT'as įspėja (".date("Y.m.d H:i").")";
$laiskas = "Sveiki,\n\n siunčiu Jums informacinį laišką dėl Jūsų pateiktos klubo anketos. Radau neatitikimų, kuriuos galite pažiūrėti adresu http://vwklubas.lt/viewpage.php?pag... Privalote juos ištaisyti iki artimiausio anketų audito. Jeigu Jūsų anketa teisinga ir lankotės klube reguliariai, praneškite klubo superadminui masterj apie BOT'o aptikimo klaidą!\n\n\nAtminkite šitas laiškas yra AUTOMATIZUOTAS.\n\nvwklubas.lt BOTAS";
foreach ($bloginariai as $bl) {
$datag = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$bl'"));
sendemail($datag['user_aim'], $datag['user_email'], "www.vwklubas.lt", "mjguscius@yahoo.com", $pavadinimas, $laiskas, $type="html");
}
unset($bl);
fallback(FUSION_SELF.$aidlink);
}
Problem is that after I press the button, function sends e-mail to everyone in array as supposed to but browser never shows me that page have reloaded : (fallback(FUSION_SELF.$aidlink);) it just keeps loading page with no activity, for example Firefox shows "Loading..." on tab of my web site. I suspect that problem lies in form or button