PHP/HTML for email sharing button help?
-
Hi all,
I have this line of code for sharing a link by email. It works great, but it opens up a new browser tab, which I don’t want. I know it’s the JavaScript,
window.openbut when I remove that, I mess the whole thing up because I’m still new to PHP. Any help would be appreciated!<li><a class="email social-icon" href="#" onclick="javascript: window.open('<?php echo 'mailto:'. $to . "?body=" . $share_url; ?>'); return false;" title="Email"><i class="fa fa-envelope-o"></i></a></li>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP/HTML for email sharing button help?’ is closed to new replies.