Results 1 to 8 of 8

Thread: Email This Page To A Friend???

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Email This Page To A Friend???

    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...

    Thanks,
    Tom

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2006
    Posts
    259
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    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>
    "Only dead fish flow with the stream".
    - Unknown

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    May 2006
    Location
    Beverley, UK
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <script type="text/javascript">
      document.forms['formName'].style.display = "none";
    </script>
    <img src="..." onmouseover="document.forms['formName'].style.display = 'block';">
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •