Click to See Complete Forum and Search --> : send a site to a friend script


chriscam19
04-05-2003, 04:30 PM
ok I still havent solved this problem yet. I need a script that will send a page or a website address to a friend. Like I want my customers to goto a page where they can enter in their friends email address and when he clicks on submit the page will be emailed to him. Someone help me. Pyro was helping me but I guess hes busy.

pyro
04-05-2003, 05:03 PM
I haven't heard from you since my latest post here: http://forums.webdeveloper.com/showthread.php?s=&threadid=6998 so I had no idea it still wasn't working. Have you tried the latest version that I provided there?

chriscam19
04-05-2003, 05:46 PM
this is the error I get:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in ...
on line 19

in my directory I have form.php and refer.php, the two files that you sent me. I have a link to the form.php on my website. when I click on the link to form.php that is the error I get!

pyro
04-05-2003, 05:50 PM
Did you link to it like this?

<a href="form.php?<? echo $_SERVER['PHP_SELF']; ?>">form test</a>

And rename any page using this link to a .php extention?

chriscam19
04-05-2003, 05:52 PM
oh, i am suppose to link it like that in my html document?

PHP:
<a href="form.php?<? echo $_SERVER['PHP_SELF']; ?>">form test</a>


no no, I have it like this

<html>
<body>

like us, refer a friend <a href = "form.php">here</a>

</body>
</html>

thats not right?

pyro
04-05-2003, 05:57 PM
Originally posted by chriscam19
no no, I have it like this

<html>
<body>

like us, refer a friend <a href = "form.php">here</a>

</body>
</html>

thats not right? Nope, that's not right. Due to the fact that your server doesn't seem to support much as far as PHP goes, we have to do this the hard way...

You will need to reaname all your pages to a .php extention and add the link like this: <a href="form.php?<? echo $_SERVER['PHP_SELF']; ?>">form test</a>

chriscam19
04-05-2003, 06:00 PM
I just called tech support I do have PHP but its PHP4 the guy said!

chriscam19
04-05-2003, 06:09 PM
I renamed form.php to form.php4 and I went inside the form and changed refer.php to refer.php4. then I went to the refer.php and renamed that to refer.php4. then I tried filling in the name and email to send to a friend and clicked on submit and this is what I got back:

Method Not Allowed
The requested method POST is not allowed for the URL /refer.php4

chriscam19
04-05-2003, 07:30 PM
just goto ... and click on enter, and go down to where it says refer a friend and try out the script! you will see the message

Moderator's note: Stop posting a link to that site. Period. This site will not be a doorway to such objectionable material. You will lose your mebership here if you persist in ignoring my warnings.