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

0 Members and 1 Guest are viewing this topic.

Offline admin

  • Administrator
  • *****
  • Posts: 43
  • Karma: +1/-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!

 

Related Topics

  Subject / Started by Replies Last post
10 Replies
11328 Views
Last post January 17, 2009, 01:10:35 PM
by 123funda
13 Replies
10052 Views
Last post November 24, 2009, 06:52:41 PM
by fonec
1 Replies
1035 Views
Last post July 26, 2008, 11:18:25 AM
by aleksa
3 Replies
3410 Views
Last post August 13, 2009, 07:00:33 AM
by admin
1 Replies
1292 Views
Last post August 06, 2009, 09:39:02 PM
by admin