| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| NamePros Member | 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) |
| An American Soldier ![]() | 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:
__________________ Completely Free cPanel Hosting -- Deployed to Afghanistan -- "There is no such thing as rich over-night unless you owned Google stock in 2006" |
| |
| | #4 (permalink) |
| First Time Poster ! | 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 ? . |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |