Computing.Net > Forums > Web Development > (PHP) Form sending e-mail

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

(PHP) Form sending e-mail

Reply to Message Icon

Name: masterj
Date: July 2, 2008 at 00:05:06 Pacific
OS: Windows Vista
CPU/Ram: 4096
Product: x64
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: neodare
Date: July 17, 2008 at 00:40:38 Pacific
Reply:

just set the form action to the page and check ...


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: (PHP) Form sending e-mail

PHP e-mail form: Option element www.computing.net/answers/webdevel/php-email-form-option-element/3147.html

php form www.computing.net/answers/webdevel/php-form/762.html

E-mail submition form - forgotten! www.computing.net/answers/webdevel/email-submition-form-forgotten/653.html