Dilemma
- You'd like to let people refer others to your site
- You've seen those "send this page to a friend" links and you want one for your web pages.
- However, you don't want to turn all of your Web pages into computer programs.
- You don't want to run your own Relational Database Management System-backed Web site.
Solution
Hughes Computer Consulting provices the solution.- Your static pages stay on your server
- You create a realm on this server, which contains your name and email address, the name and address of your web site
- You add a link to your page that looks like this: tell a friend
- People visiting your site now have the option to send an email to their friends when they see something they like
Features
- Simple link on your pages
- It's free!
Implementation
This one is very simple.On a page you want to have a tell-a-friend link, you simply add this anchor:
<a href="http://www.HughesComputerConsulting.com/database/tell-a-friend.php
?domain=DOMAIN&link=LINK&name=NAME">tell-a-friend</a>
(one line, not two, it's broken here to fit on the page)It's important to note that although the order of the parameters is not important, the first one must be prefixed with a question mark (?) and all the following parameters must be prefixed with the ampersand (&). DOMAIN is the 'pretty' name for the domain (eg. DarkroomSource instead of www.darkroomsource.net) LINK is the complete url to the page (eg. http://www.darkroomsource.net/rentals.shtml) NAME is the 'pretty' name for the page (eg. Darkroom Rentals) If you don't provide the name parameter, the software will check the link to find the title (between
<title> and </title> tags).
This does add time to the loading of the page, so it's preferable to pass the name parameter.
If you have a realm on the database server, you can use
realm=REALM instead of domain, and pageid=PAGEID instead of link and name.
This will cause the software to get the realm name and page name and backlink from the database.
If you have a realm, and send the realm parameter, you can still send the link and name parameters.
If you send the realm parameter with or without the pageid parameter, you can still send the domain and/or link and/or name parameters, they will override the database values.
