View Full Version : Email This Page To A Friend???

05-26-2006, 05:16 AM
Does anyone know a way to do this, having a link which says "email this page to a friend"? I just want to have an image/link and when rolled over it will open up a form, but one that would email the link of the page... I'm using a formail script for my form...


05-26-2006, 05:53 AM
To clear this up, you already have the form and form processing handled, right?
you're not asking how to send an email with a form, correct?

As for that javascript... might be easier to just include it, or make a popup link, or something.
I'm not sure myself.
Give a link and/or better description and someone else can probably help you out with it, though. :)

05-26-2006, 07:59 AM
I like this way:

<a href="mailto:?Subject=Thought You Would Like This WebSite&amp;body=They Have Free Full Lenght Movies At www.beholdhecomes.net/">Tell A friend</a>

05-26-2006, 08:05 AM
that's basically the worst solution.
it's good because that's all the coding involved.
it's bad because it isn't automatic, it isn't form based, and it requires the user to have an email application in use by default with the mailto command supporting the subject and body attributes.

It might generally work, but its having the user do your job for you.

In addition, I think the question here isn't about how to send the form, but how to display the form.... not the sending method (my question above).

also, even if you did use that method, its nothing more than just giving the email address, plus a bit of automating... clicking, not cutting/pasting.

If you used a form with <form action="mailto:...?">, then it would send that forms data... this would give the page some control over what was in the message, etc, helping the user more than just giving a generic subject, etc.
but there are better ways to interpret forms... not that hard, really. worth looking into at least.

05-26-2006, 12:27 PM
Mailto forms are not a good idea. In fact, Jack's solution is better -- and that's a pretty bad one.

The only decent way to do this is server-side.

05-26-2006, 01:16 PM

05-26-2006, 05:39 PM
Ah, Twey, you may be right.

But... yeah, neither is good... use serverside.

The OP's question still hasn't been answered.

This is way off topic.

he asked how to show and hide the form, not how to process the data.

I don't know how... but... someone?

05-26-2006, 05:42 PM
<script type="text/javascript">
document.forms['formName'].style.display = "none";
<img src="..." onmouseover="document.forms['formName'].style.display = 'block';">