Hi!
Your script seems useful but can it be used for spam? I don't know enough
PHP to make things secure enough so i'm always worried about things like
that...
"LBA" <webdesigns@no2spamabramsnet.com> wrote in message
news:duq4qi$5um11@news01.netobjects.com...
> There's a superfluous line in there. Delete...
> $email = $to;
>
> Laurence
>
> LBA wrote:
>
> > I just wrote a pretty simple Tell-A-Friend script in PHP that uses
> > this form page...
> > http://www.petpeevescollector.com/ht...-a-friend.html and then
> > this short piece of code...
> > <?
> > $first = $_POST["first"];
> > $last = $_POST["last"];
> > $to = $_POST["to"];
> > $from = $_POST["from"];
> > $comments = $_POST["comments"];
> > $subject = "Site recommendation from " . $first;
> > $message = $comments . "\n\n" . "http://www.domain_name.com/";
> > $email = $to;
> > $headers = "From: $first $last <$from>";
> > mail($to, $subject, $message, $headers);
> > ?>
> >
> > To have it show whatever page the viewer is viewing, (instead of
> > hardcoded the way it is above), you might try to replace...
> > "http://www.domain_name.com/"
> > with...
> > $currentPage="http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
> >
> > Laurence
> >
> > Gary Sanders wrote:
> >
> >> Hello:
> >>
> >> I need to add features to a web site I am working on for a client....
> >>
> >> The two things I need are....
> >>
> >> - "Bookmark This Site" Button / Option
> >> - "Tell A Friend" Button / Option
> >>
> >> They would need to work with both NOF7 and NOF9. FREE, as a cost,
> >> would be
> >> better if at all possible... Does anyone know of any code / scripts
/
> >> components that will do these? The "Tell A Freind" option would be
> >> nice if
> >> it would send the exact URL of the page it was sent from and not just
> >> a"boiler-plate" home page type URL.
> >>
> >> Thanks...
> >>
> >> Gary Sanders
> >> e-mail: gsandersATnbnet.nb.ca (You may e-mail me directly)
> >>
> >>
> >>
> >>