[PHP] header, location: mailto abd browsers

2005-09-07 Thread Bernard Perrot

hello,

I have a little problem with this kind of script :

mailto:$addr";);
}

mailto("[EMAIL PROTECTED]");
?>

When called from an html page, it open correctly un MUA from mailing, but with 
some browser (mozilla for example), the calling page is still displayed, and 
with some others (firefox for example), a new blank page is displayed (and I 
don't want).


Any ideas about the problem ? How to solve it ?

Best regards,

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] header, location: mailto abd browsers

2005-09-07 Thread Bernard Perrot

Mikey wrote:

Your script doesn't appear to be trying to do a re-direct, but rather 
open a client side e-mail - if you want to do this, then you will need 
to use JavaScript on the client side.


Yes it redirect, because PHP add a 302 response header in this case.

And the client-side email is opened. But with mozilla, the calling page is 
still displayed, and with firefow, a new blank one is displayed. That's my 
question : who is right ? Mozilla or Firefox ? And how to have always (which 
header) the calling page displayed (without javascript, because it don't works 
if client don't want...).


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php