TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 310
  • Total: 310

Tell A Friend Block

Started by RebelRose, August 29, 2006, 07:11:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Looks like you'll have to skip using this scrip then.

Lafemme

yes.. i guess so.. thank you for helping out though :D

Lafemme

hello... A friend helpt me with this problem, since i really wanted this feature.... he told me to do this:

Find:

strip_tags($friendmail1);

Replace:

if (!empty($_POST['friendmail1']))
$friendmail1 = $_POST['friendmail1'];

if (!empty($_POST['friendmail2']))
$friendmail2 = $_POST['friendmail2'];

if (!empty($_POST['friendmail3']))
$friendmail3 = $_POST['friendmail3'];

if (!empty($_POST['email']))
$email = $_POST['email'];

if (!empty($_POST['name']))
$name = $_POST['name'];

strip_tags($friendmail1);


and it works like a charm!!

So.. thanks Sinan!

Polymath

Nice Lafemme.
Bit late but it now works for me. Thanks

Lafemme

Your welcome :) 

... but...  better late then never ;)

Polymath

Old thread I know, but all information is here.

More out of curiosity as mine is being used for spam. The name is a title, the from email is the one it is going to..and the friends emails are the same.

Example:
Quotebuy dirt cheap airline tickets has used the tell-a-friend form. Their email address is ewrwrw-3323@gmail.com

The people they have recommended are:

ewrwrw-3323@gmail.com
ewrwrw-3323@gmail.com
ewrwrw-3323@gmail.com


So what I want to know is there any security for it or is that it... remove?

JPDeni

With this code, it looks like the only thing you could do is make the pages viewable only by members, which would probably help.

Polymath

Ahh right..yeah thank you. I had to do that with my contact page a long time ago.

Cheers

This website is proudly hosted on Crocweb Cloud Website Hosting.