| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| First Time Poster ! Join Date: Apr 2005 Location: GB
Posts: 6,881
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Email link to a friend code ?? Hi All Anyone know the html code for emailing a link to a friend - one where you can also put in the email subject and a couple of lines about what the link is about ?Appreciate any help you can provide Thanks. |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Jul 2006
Posts: 94
![]() ![]() ![]() | With plain HTML the most you can do is: <a href="mailto:yourid@emailprovider.com">Tell a Friend</a> which will bring up the users default mail program eg: Outlook. I suggest not using this method as most people don't use these email clients. On the otherhand, you could create a HTML 'form' which is processed by PHP which is probably the best way to do this. |
| |
| | #3 (permalink) |
| Senior Member Join Date: Jun 2005 Location: Pennsylvania
Posts: 1,839
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I think this is what he wanted... Put all that in one php page in the following order.. The following code is a form that posts to it self to send mail.. PHP Code: HTML Code: <form method="POST" action="<?=$_SERVER['PHP_SELF'];?>"> To: <input type="text" name="to"> From: <input type="text" name="sender"> Subject : <input type="text" name="subject"> Message : <textarea name="message" rows="10" cols="60" lines="20"></textarea> <input type="submit" name="send" value="Send"> </form> PHP Code:
__________________ Poker News, articles, discussion LIKE THIS Its an iPod, a phone, and an internet communications device. |
| |
| | THREAD STARTER #4 (permalink) |
| First Time Poster ! Join Date: Apr 2005 Location: GB
Posts: 6,881
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks Guys - That php stuff looks a little confusing to me though..well, alot Maybe it is a javascript code I need ?? I have used it once years ago and I think it was just a case of popping a piece of code in the header as far as I remember. Anyone know if there is such a javascript code for this ? . |
| |