Solved

Mail this (current) page to a friend

Posted on 2007-11-14
7
186 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now