/    Sign up×
Community /Pin to ProfileBookmark

send a site to a friend script

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.

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@pyroApr 05.2003 — 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?
Copy linkTweet thisAlerts:
@chriscam19authorApr 05.2003 — 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!
Copy linkTweet thisAlerts:
@pyroApr 05.2003 — Did you link to it like this?

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

And rename any page using this link to a .php extention?
Copy linkTweet thisAlerts:
@chriscam19authorApr 05.2003 — 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?
Copy linkTweet thisAlerts:
@pyroApr 05.2003 — [i]Originally posted by chriscam19 [/i]

[B]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? [/B]
[/QUOTE]
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: [code=php]<a href="form.php?<? echo $_SERVER['PHP_SELF']; ?>">form test</a>
[/code]
Copy linkTweet thisAlerts:
@chriscam19authorApr 06.2003 — I just called tech support I do have PHP but its PHP4 the guy said!
Copy linkTweet thisAlerts:
@chriscam19authorApr 06.2003 — 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
Copy linkTweet thisAlerts:
@chriscam19authorApr 06.2003 — 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

[b]Moderator's note[/b]: 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.
×

Success!

Help @chriscam19 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...