PDA

View Full Version : "Send article to a friend..."


wiggy
05-11-2001, 04:56 PM
I've seen this "Send article to a friend" on a lot of web pages, such as Wired.com. I'm wondering, how is this done, and/or what is the EASIEST way to do this?

What I'm thinking is having a link at the bottom of the article page that links to the "Send to" page. When you click the link, it also passed on a variable to the next page.

The Send To page has a form where the user enters the address they want the e-mail to go to. And then from there...? I guess maybe PHP script? But I'm kinda new to this.

So if anyone can help, I'd appreciate it.

RandMan
05-11-2001, 05:08 PM
You can see it in action on my web site. I use PHP and JavaScript for email.

Find and display a joke. Then look at the source code. Copy and paste the JavaScript, and modify for your own use.

The mail function is handled from the called action. It is simple PHP code:

mail($mailto,$subject,$message,$additional_headers);