[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net 2006-04-05T11:24:45+01:00 http://webmasterplein.net/feed.php?f=13&t=6377 1970-01-01T01:00:01+01:00 2006-04-05T11:24:45+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55701#p55701 <![CDATA[Re: Unsubscribe]]>
Wat gaat me dit een werk schelen nu iedereen zichzelf kan aan en/of afmelden...

Mijn dank is oneindig groot..


:aanbid: :aanbid: :aanbid: :aanbid: :aanbid:

Statistieken: Geplaatst door Gast — 05 apr 2006 11:24


]]>
1970-01-01T01:00:01+01:00 2006-04-05T10:15:29+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55698#p55698 <![CDATA[Re: Unsubscribe]]> - overbodige {} verwijderd
- nette enters toegevoegd
- het en der commentaar toegevoegd, zodat jij het zelf ook nog snapt Wink
- als de mail is verstuurd pas gegevens uit de database verwijderen. Niet eerder, stel dat de mail niet versuurd kon worden.
- Het mailtje van jou oude script moet er belachelijk uit hebben gezien. Ook dat heb ik veranderd

en dan nu: het script
rapatapaaaam Razz
*tromgeroffel...

[code="php"]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Mailing Verwijderen</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: verdana;
font-size: 10pt;
color: 000000;
}
-->
</style></head>

<body>
<?
$hostname = "localhost";
$username = "derodehaan_nl";
$password = "********";
$database = "derodehaan_nl_5";

mysql_connect("$hostname","$username","$password");
mysql_select_db("$database");

echo "<BR><BR>\n";
echo "Voer hier de naam en email adres in dat verwijderd moet worden uit de mailinglist:<BR><BR>\n";
if(!empty($_POST['naam']) && !empty($_POST['email']))
{
$query = mysql_query("SELECT * FROM mailing WHERE email = '$email' AND naam = '$naam'");
//hij kijkt of er 1 of meer rijen in de database zijn die aan de voorwaarden voldoen
if(mysql_num_rows($query) >= 1)
{
//hij conteroleert of het mail adres, dat ovirgens al in de database stond wel echt een e-mail adres is. Het stond al in de database, je hebt er al verscheidene mail naar toe gestuurd. Waarom zit dit hier in?
if (preg_match("/(?i)^([a-z0-9._-])+@([a-z0-9.-])+\.([a-z0-9]){2,4}$/",$email))
{
$name = "De Rode Haan";
$myemail = "noreply@derodehaan.nl";
$subject = "Afmelding Mailinglist";
$message = "Beste $naam, \nJe bent verwijderd van de mailinglist van: $name. \n\n---------------------------------------- \nJe gegevens: \n\nNaam: $naam \nE-mail: $email \n---------------------------------------- \n\nHeb je niet zelf je mailadres van de maillijst verwijderd?\nMeld je dan weer opnieuw aan op http://www.derodehaan.nl\n\n\nMet Vriendelijke Groet, $name";
if (mail("$email","$subject","$message","From: $name <$myemail>"))
{
//er is nu een mail verzonden.
echo "Okey, U bent verwijderd van de mailings list.<BR>Een bevestigingsmail is naar u verstuurd!\n";
$query2 = "DELETE FROM mailing WHERE naam = '$naam' AND email = '$email'";
mysql_query($query2) or die(mysql_error());
}
else
{
//de mail kon niet worden verzonden doordat er iets op de server misging (mail adres niet valid?)
echo "U heeft uw gegevens goed ingevuld, maar door een serverfout kon u niet verder afgemeld worden. Probeer het later nog eens. Werkt het dan nog niet, stuur dan een e-mail naar de eigenaar van de site.";
}
}
else
{
//nu is het e-mail adres niet valid (volgens je regeltje klopt het niet). Als het mail adres wel klopt, en de gebruiker ontvangt gewoon de mails, dan is het onmogelijk om af te melden.
}
}
else
{
//er konden dus geen rijen geselecteerd worden in de database. Dit betekent dat de gegevens niet goed zijn ingevuld.
echo'De gegevens die u heeft ingevuld komen niet overeen met die in de database. U word niet afgemeld.';
}
}

echo "<FORM METHOD=\"post\" ACTION=\"index.php?action=remove\">\n";
echo "<TABLE BORDER=\"0\" CELLPADDING=\"5\" CELLSPACING=\"0\" WIDTH=\"400\">\n";
echo "<TR>\n";
echo "<TD>Naam:</TD>\n";
echo "<TD><INPUT TYPE=\"text\" NAME=\"naam\" SIZE=\"20\" CLASS=\"form\"></TD>\n";
echo "</TR>\n";
echo "<TR>\n";
echo "<TABLE BORDER=\"0\" CELLPADDING=\"5\" CELLSPACING=\"0\" WIDTH=\"400\">\n";
echo "<TR>\n";
echo "<TD>E-mail:</TD>\n";
echo "<TD><INPUT TYPE=\"text\" NAME=\"email\" SIZE=\"20\" CLASS=\"form\"></TD>\n";
echo "</TR>\n";
echo "<TR>\n";
echo "<TD COLSPAN=\"2\"><INPUT TYPE=\"submit\" NAME=\"verwijder\" VALUE=\"Verwijder\" CLASS=\"button\"></TD>\n";
echo "</TR>\n";
echo "</TABLE>\n";
echo "</FORM>\n";
?>
</body>
</html>[/code]

Statistieken: Geplaatst door Derk — 05 apr 2006 10:15


]]>
1970-01-01T01:00:01+01:00 2006-04-05T09:49:29+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55697#p55697 <![CDATA[Re: Unsubscribe]]> Statistieken: Geplaatst door Gast — 05 apr 2006 09:49


]]>
1970-01-01T01:00:01+01:00 2006-04-05T07:12:47+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55693#p55693 <![CDATA[Re: Unsubscribe]]> Statistieken: Geplaatst door Derk — 05 apr 2006 07:12


]]>
1970-01-01T01:00:01+01:00 2006-04-05T05:33:57+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55692#p55692 <![CDATA[Re: Unsubscribe]]> Statistieken: Geplaatst door Gast — 05 apr 2006 05:33


]]>
1970-01-01T01:00:01+01:00 2006-03-31T21:35:38+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55550#p55550 <![CDATA[Re: Unsubscribe]]> Statistieken: Geplaatst door Derk — 31 maart 2006 21:35


]]>
1970-01-01T01:00:01+01:00 2006-03-30T21:14:36+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55527#p55527 <![CDATA[Re: Unsubscribe]]> Statistieken: Geplaatst door Gast — 30 maart 2006 21:14


]]>
1970-01-01T01:00:01+01:00 2006-03-30T20:24:20+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55525#p55525 <![CDATA[Re: Unsubscribe]]> Statistieken: Geplaatst door Gast — 30 maart 2006 20:24


]]>
1970-01-01T01:00:01+01:00 2006-03-30T20:21:30+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55524#p55524 <![CDATA[Re: Unsubscribe]]> Statistieken: Geplaatst door mats — 30 maart 2006 20:21


]]>
1970-01-01T01:00:01+01:00 2006-03-30T20:20:17+01:00 http://webmasterplein.net/viewtopic.php?t=6377&p=55523#p55523 <![CDATA[Re: Unsubscribe]]> Statistieken: Geplaatst door Gast — 30 maart 2006 20:20


]]>