Solved

Mail this (current) page to a friend

Posted on 2007-11-14
7
187 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to count occurrences of each item in an array.

770 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