Solved

Mail this (current) page to a friend

Posted on 2007-11-14
7
190 Views
Last Modified: 2008-02-01
Hi,

I need a code (php or html) who has a button on every page of my site. When you click on that button (mail this page to a friend) it should get a form with some fields like:
Name to
Email to
Name from
email from

It should tell in the body that you have to visit the page.

www.url.com/page1.php
or
www.url.com/page2.php
etc etc

Thanks!
HPvH
0
Comment
Question by:HPvH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 16

Expert Comment

by:rbudj
ID: 20284411
0
 

Author Comment

by:HPvH
ID: 20287386
I mean like it is on this site (see the button "Send to Frien")

Thanks,
HP
0
 
LVL 21

Expert Comment

by:nizsmo
ID: 20287579
yes that is possible, do you have any code to get started with?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:HPvH
ID: 20287936
Not yet, sorry.
0
 
LVL 16

Expert Comment

by:rbudj
ID: 20289851
The link I gave you is the same concept as your request.
0
 

Author Comment

by:HPvH
ID: 20291589
I found this code:
How to put a image before the link "mail deze pagina"

                              <!-- Start Mail deze pagina -->
                                    <script LANGUAGE="JavaScript">
                                          <!-- Begin
                                          function isPPC() {
                                          if (navigator.appVersion.indexOf("PPC") != -1) return true;
                                          else return false;
                                          }
                                          if(isPPC()) {
                                          document.write('<A class="standard" HREF=\"mailto:\?subject\=Bekijk deze pagina die ik heb gevonden, ' + document.title + '?body=Klik op: ' + window.location + '\" onMouseOver="window.status=\'Mail deze pagina\'; return true" TITLE="Mail deze pagina ">mail deze pagina<\/A>.');
                                          }
                                          else { document.write('<A class="standard" HREF=\"mailto:\?body\=Bekijk deze pagina die ik heb gevonden, ' + document.title + '. Klik op: ' + window.location + '\" onMouseOver="window.status=\'Mail deze pagina\'; return true" TITLE="Mail deze pagina">mail deze pagina<\/A>.');
                                          }
                                          //  End -->
                                    </script>
                              <!-- Einde Mail deze pagina -->                         
0
 
LVL 21

Accepted Solution

by:
nizsmo earned 500 total points
ID: 20291612
Like this.
<!-- Start Mail deze pagina -->
                                    <script LANGUAGE="JavaScript">
                                          <!-- Begin
                                          function isPPC() {
                                          if (navigator.appVersion.indexOf("PPC") != -1) return true;
                                          else return false;
                                          }
                                          if(isPPC()) {
                                          document.write('<img src="YOUR IMAGE PATH" alt="ALT TEXT"><A class="standard" HREF=\"mailto:\?subject\=Bekijk deze pagina die ik heb gevonden, ' + document.title + '?body=Klik op: ' + window.location + '\" onMouseOver="window.status=\'Mail deze pagina\'; return true" TITLE="Mail deze pagina ">mail deze pagina<\/A>.');
                                          }
                                          else { document.write('<img src="YOUR IMAGE PATH" alt="ALT TEXT"><A class="standard" HREF=\"mailto:\?body\=Bekijk deze pagina die ik heb gevonden, ' + document.title + '. Klik op: ' + window.location + '\" onMouseOver="window.status=\'Mail deze pagina\'; return true" TITLE="Mail deze pagina">mail deze pagina<\/A>.');
                                          }
                                          //  End -->
                                    </script>
                              <!-- Einde Mail deze pagina -->     

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question