arggh.. this should be simple, but i'm having trouble...
what i want do is take an email address and use PHP to create some sort of encoded string which would be printed to the browser and unencoded by javascript. like so
<?php
$encoded_email = base64_encode( '<a href="mailto:joeblow@email.com">Email Me</a>' );
echo '<script type="text/javascript" language="javascript">{document.write(Base64._utf8_decode(';
echo $encoded_email;
echo '))}';
?>
But that doesn't work. I don't know how to use PHP to generate something that JS can decode using "String.fromCharCode", and i tried utf8_encode, but couldn't get that to work either.
any help would be greatly appeciated