Forum Moderators: open

Message Too Old, No Replies

Tell to Friend Problem with .SHTML

tell to friend script problem

         

aryangupta19

8:48 pm on Jun 29, 2006 (gmt 0)

10+ Year Member



Hello to all.

plz see [test.mls-panama.com...]

at top-right corner there is a link "tell to friend", which on click will open a separate box with a form.

this link is working when i name this page index.html but it doesn't work when i rename it with .shtml extension i.e. "index.shtml"

what's the problem and how to resolve it, please help urgent.

thanx a lot for reading.

-
aryan

aryangupta19

8:50 pm on Jun 29, 2006 (gmt 0)

10+ Year Member



Additional:

the code i am using is :-

<a href="javascript:tell_to_friend('<?= $_SERVER['SCRIPT_NAME'];?>')"> Tell a friend</a>

texmex

6:21 am on Jun 30, 2006 (gmt 0)

10+ Year Member



I'm not familiar with that syntax. Are you perhaps trying to get this to work with PHP (something I'm also not very familiar with). In which case should it be along the lines of:

<a href="javascript:tell_to_friend('<?PHP = $_SERVER['SCRIPT_NAME'];?>')"> Tell a friend</a>

But then you'd be saving it as .PHP no?

if it's really a .shtml format you want it would be something along the lines of:


<a href="javascript:tell_to_friend('<!--#include virtual="cgi-bin/SCRIPT_NAME"-->')">Tell a friend</a>

In either case that SCRIPT_NAME should be replaced with the name of a script file that actually exists.