TestClear

Author Topic: "Send This Link" PHP Script  (Read 16127 times)

Offline admin

  • Administrator
  • *****
  • Posts: 68
  • Karma: +11/-0
  • Gender: Male
"Send This Link" PHP Script
« on: September 07, 2007, 10:39:54 AM »

A popup form which allows your visitors to send a referral link from your site. It features admin notification and HTML output.

1.Upload myemail.php and set.php to the root of your web server.
(eg: yourdomain.com/set.php and yourdomain.com/myemail.php)
2.Put the following code on your web page.(PopUp Window)


Code: [Select]
<SCRIPT LANGUAGE="JavaScript">
function popupWin() {

text  = "<center><font face='Verdana' color='#4863A0' font-size='14px' weight='bold'> \n<br>";
text += "<title>Send This Link</title>\n";
text += "<form name='myform' action='/set.php' method='POST'>\n";
text += "<h4>Send This Link</h4><br><br>\n";
text += "Friends Name<br><input type=text style='font-size: 13px; font-family: verdana; font-weight: bold; color: #4863A0; BORDER: #000000 1px solid ; BACKGROUND-COLOR: #F8F8F8' name ='zname' size='25'><br>\n";
text += "Your Friend's Email Address<br><input type=text style='font-size: 13px; font-family: verdana; font-weight: bold; color: #4863A0; BORDER: #000000 1px solid ; BACKGROUND-COLOR: #F8F8F8' name = 'to' size='25'><br>\n";
text += "Your Name<br><input type=text style='font-size: 13px; font-family: verdana; font-weight: bold; color: #4863A0; BORDER: #000000 1px solid ; BACKGROUND-COLOR: #F8F8F8' name ='name' size='25'><br>\n";
text += "Your Email Address<br><input type=text style='font-size: 13px; font-family: verdana; font-weight: bold; color: #4863A0; BORDER: #000000 1px solid ; BACKGROUND-COLOR: #F8F8F8' name = 'my' size='25'><br>\n";
text += "Your Message<br><input type=text style='font-size: 13px; font-family: verdana; font-weight: bold; color: #4863A0; BORDER: #000000 1px solid ; BACKGROUND-COLOR: #F8F8F8' name = 'msg' size='25'><br>\n";
text += "<br><INPUT TYPE='SUBMIT' VALUE='Submit' STYLE= 'font syze: 12px; color: #FFFFFF; border-color:#000000; border-width:1px; background-color: #9999CC'>\n";
text += "<INPUT TYPE='RESET' VALUE='Reset' STYLE= 'font syze: 12px; color: #FFFFFF; border-color:#000000; border-width:1px; background-color: #9999CC'>\n";

text += "<br><br><br><br><br><br><br><hr></form>\n";

newWindow = window.open('','newWin','width=500,height=490');
newWindow.document.write(text);
}

</script>
<a href= "javascript: void (0)"; onClick=popupWin();><b>Send This Link</b></a>
Download: Forum Users



« Last Edit: January 11, 2009, 10:52:10 AM by admin »

Offline mac44

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: "Send This Link" PHP Script
« Reply #1 on: April 21, 2008, 07:36:47 AM »
I added your script to my site, and I received the following error message:

Not Found

http://www.shaofeiart.com/set.php

The requested URL was not found on this server.

お探しのURLはこのサーバーでは見つかりませんでした。

L'URL que vous avez sollicitée n'a pas été trouvée sur ce serveur.

Die URL, die Sie angefordert haben, wurde nicht auf diesem Server gefunden.

Please advise.

Thanks!

Offline vorovo

  • Supporter
  • **
  • Posts: 2
  • Karma: +0/-0
Re: "Send This Link" PHP Script
« Reply #2 on: November 01, 2010, 05:00:16 AM »
Admin, hello, i tried your script but it didnt work on my website http://vorovo.6te.net 
what could be the error

Offline vorovo

  • Supporter
  • **
  • Posts: 2
  • Karma: +0/-0
Re: "Send This Link" PHP Script
« Reply #3 on: November 01, 2010, 06:56:00 AM »
My Script is working now Thank You, i would like to ask if i can use it to send to more than 1 email address at a time,
Yahoo was the source of my innitial problem,

Advice if you try it with yahoo and it didnt work try Gmail , i will work


Kudos.