arbitter Posted April 26, 2010 Share Posted April 26, 2010 What I want is that i can have a link <a> with an onclick, and when the person clicks it, an email gets sent to $email with a certain message. I can send messages in PHP, that's not the problem, but I wan't do it in javascript, and even if I could I wouldn't be able to do it safely. Quote Link to comment Share on other sites More sharing options...
Psycho Posted April 26, 2010 Share Posted April 26, 2010 You can't send an email with JavaScript. You can use JavaScript to fire off a PHP page to send the email (i.e. AJAX). There are many AJAX tutorials available. Quote Link to comment Share on other sites More sharing options...
arbitter Posted April 26, 2010 Author Share Posted April 26, 2010 Ajax, I've never used that, but I'll do my research. Thanks! wasn't sure if it was possible. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.