texaz
01-11-2003, 09:36 PM
Does anyone know of a Javascript that would allow me to implement a "Recommend This Site to a Friend" feature on my website?
|
Click to See Complete Forum and Search --> : "Recommend This Site to a Friend" Javascript?? texaz 01-11-2003, 09:36 PM Does anyone know of a Javascript that would allow me to implement a "Recommend This Site to a Friend" feature on my website? pyro 01-11-2003, 09:52 PM If your server supports PHP, that is the method that I would use. It would be much easier... texaz 01-11-2003, 10:00 PM I believe I'm on an Apache server. I know absolutely nothing about PHP - how difficult would this be? pyro 01-11-2003, 10:04 PM Not too dificult...I've got a script sitting on my hdd that I'd be able to send you. :) To check if you have PHP, make a file named test.php, with this as the source, and upload it. Then run it and see what it says. I'd be willing to bet that you do have it. <?PHP echo ("I have PHP!"); ?> texaz 01-11-2003, 10:22 PM Hey, I have PHP! Now what? (You're awesome)! pyro 01-11-2003, 10:34 PM Great. Here are the files you need... If you need any help with them let me know. A lot of the stuff is simple HTML, which you should be able to edit without a problem. Remember, PHP only works when it is up on your server. It should be pretty self explanitory, but if it isn't, I can help you. texaz 01-11-2003, 11:11 PM OK, I'm getting there - thanks so much for your help so far. The only thing that I'm not getting is inserting the URL of the website in the form. I'm sure I'm supposed to put the URL somewhere in the script, but where? pyro 01-11-2003, 11:18 PM Originally posted by texaz I'm sure I'm supposed to put the URL somewhere in the script, but where? No need. I used the HTTP_REFERER variable to get the page that you came from. So, what it does, is dynamically checks what page you were on before you came to the form. This makes it as easy as adding the link to each page that you want to be able to send a link from. :) texaz 01-11-2003, 11:28 PM Pyro, you are indeed a Supreme Being! I think I got it now. Thanks for your patience :) pyro 01-11-2003, 11:32 PM Originally posted by texaz Pyro, you are indeed a Supreme Being! Thank you. :) Daria 10-17-2003, 09:43 AM Pyro, just found this thread, used the code. Rulez! pyro 10-17-2003, 11:18 AM Lol... Awesome! :) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |