Re: email counter
| From: | Jack | Date: | Wed, 18 Jul 2001 13:53:15 +0000 |
| Subject: | Re: email counter | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58377@lists.php.net to get a copy of this message | ||
> Try to use javascript:
>
> <script language="JavaScript">
> x = window.open("mailto:<?php echo $mailaddress
> ?>", "Site");
> </script>
>
> It's easy to combine it with PHP to count the send mails.
>
In order to do the mail counter using javascript above, how would that work?
What is "Site" for? and Does this script execute when people click on the
link to send mail or something?
Jack
jacky@activelifestyle.com
"Love your enemies, it will drive them nuts"
----- Original Message -----
From: Jorg Krause <krause@comzept.de>
To: <php-general@lists.php.net>
Sent: Tuesday, July 17, 2001 2:53 AM
Subject: RE: [PHP] email counter
> Hi,
>
> > Brian White [mailto:bwhite@steptwo.com.au] wrote on Tuesday, July 17,
2001
> 5:52 AM
> > To: Jack; php-general@lists.php.net
> > Subject: Re: [PHP] email counter
> >
> >
> > How about changing link to
> >
> > <a href="mymailer.php?email=lucas@starwars.com"> Big George </a>
> >
> > Where mymailer.php is something like
> >
> > <?php
> > /*
> > Do whatever it is you need to do with $email
> > */
> >
> > header("Location: mailto:$email" );
> >
> > ?>
> >
>
> Works, but changes the previous open window into a empty sheet
> and displays "mailto:lucas@starwars.com", so the old
> page
> disappears (the user has to click the back button). I think this
> solution is not really good for common usage.
>
> Try to use javascript:
>
> <script language="JavaScript">
> x = window.open("mailto:<?php echo $mailaddress
> ?>", "Site");
> </script>
>
> It's easy to combine it with PHP to count the send mails.
>
> Joerg
> www.php.comzept.de
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>