For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2006 > Unsubscribing script









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Unsubscribing script
Lampa Dario

2006-05-07, 7:01 pm

I'd like to create a little script to allow users to remove from
mailing list.
I use the folowing code

$remove_msg='Lei riceve questo messaggio poiché si è iscritto alla
newsletter. PotrÃ_ revocarla in ogni momento. Per non ricevere la nostra
Newsletter, clicchi qui:'; $urlmail='<a
href="http://www.mysite.com/Mailing/unsubscribe.php?email=';
$urlmail.=$toaddress.'">http://www.mysite.com/Mailing/unsubscribe.php?email='.$toaddress.'</a>';
$message.=$rimozione."\n".$urlmail;

such code add to the messages I send users the instructions to remove
themselves from the mailing list. When the user receives the
message, there is the correct link to the script, followed by his
email address. But in the status bar of the browser the email address
is not present, and infact, ib the unsubscribe.php script, the variable
email is empty.

What's the mistake?

Francesco
--
Teaching OnLine
Corsi online di programmazione
Php, Asp, C, C++, Visual Basic, Delphi
Linux Shell Programming
------------------------------------
http://www.teachingonline.it

Martin Jay

2006-05-09, 6:57 pm

In message <445dc348$0$29111$5fc30a8@news.tiscali.it>, Lampa Dario
<lamp@dario.it> writes
>I'd like to create a little script to allow users to remove from
>mailing list.
>I use the folowing code
>
>$remove_msg='Lei riceve questo messaggio poiché si è iscritto alla
>newsletter. Potrà revocarla in ogni momento. Per non ricevere la nostra
>Newsletter, clicchi qui:'; $urlmail='<a
>href="http://www.mysite.com/Mailing/unsubscribe.php?email=';
>$urlmail.=$toaddress.'">http://www.mysite.com/Mailing/unsubscribe.php?e
>mail='.$toaddress.'</a>';
>$message.=$rimozione."\n".$urlmail;
>
>such code add to the messages I send users the instructions to remove
>themselves from the mailing list. When the user receives the
>message, there is the correct link to the script, followed by his
>email address. But in the status bar of the browser the email address
>is not present, and infact, ib the unsubscribe.php script, the variable
>email is empty.
>
>What's the mistake?


Hmmm, I don't know. As a test I added:

$toaddress='martin@spam-free.org.uk';

at the top and the script appeared to give the expected result. Perhaps
there is a problem somewhere else in the script?
--
Martin Jay
Norman Peelman

2006-05-09, 6:57 pm



--
FREE Avatar hosting at www.easyavatar.com
"Lampa Dario" <lamp@dario.it> wrote in message
news:445dc348$0$29111$5fc30a8@news.tiscali.it...
> I'd like to create a little script to allow users to remove from
> mailing list.
> I use the folowing code
>
> $remove_msg='Lei riceve questo messaggio poiché si è iscritto alla
> newsletter. Potrà revocarla in ogni momento. Per non ricevere la nostra
> Newsletter, clicchi qui:'; $urlmail='<a
> href="http://www.mysite.com/Mailing/unsubscribe.php?email=';
>

$urlmail.=$toaddress.'">http://www.mysite.com/Mailing/unsubscribe.php?email=
'.$toaddress.'</a>';
> $message.=$rimozione."\n".$urlmail;
>
> such code add to the messages I send users the instructions to remove
> themselves from the mailing list. When the user receives the
> message, there is the correct link to the script, followed by his
> email address. But in the status bar of the browser the email address
> is not present, and infact, ib the unsubscribe.php script, the variable
> email is empty.
>
> What's the mistake?
>
> Francesco
> --
> Teaching OnLine
> Corsi online di programmazione
> Php, Asp, C, C++, Visual Basic, Delphi
> Linux Shell Programming
> ------------------------------------
> http://www.teachingonline.it
>


Too many quotes to shake a stick at, try:

$urlmail="<a
href='http://www.mysite.com/Mailing/unsubscribe.php?email=$toaddress'>Unsubs
cribe</a>";

---
Norm





Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com