Solved

Mail this (current) page to a friend

Posted on 2007-11-14
7
189 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
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!

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Building a glossary into your website 9 54
Boolean 13 44
How to I read text a text box using code in another form? 9 58
sitemap.xml 3 23
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…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

736 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