Author Topic: spam  (Read 1566 times)

sanj

  • Posts: 54
    • View Profile
spam
« on: March 04, 2007, 03:57:55 am »
hi,
I'm having a lot of problems wiht automatic submission software.

could anyone give me apiece of code that i can add to my submission form that prevent the form from submitting if fname = lname.

Basically i get a lot entries in my database with the exact same entries for first name and last name and some made up email.

thanks
sanj
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
spam
« Reply #1 on: March 04, 2007, 08:57:09 am »
Hi SanJ,

Check out this post:

http://listmailpro.com/forum/index.php?topic=1203.0

You can do what you want with the following code:
Code: [Select]
if($fname==$lname) exit;
Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sanj

  • Posts: 54
    • View Profile
spam
« Reply #2 on: March 05, 2007, 06:20:52 am »
hi Dean,

My database is now full of rubbish email that have been posted by autobots.

how can i remove them without having to do it manually one by one

thanks
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
spam
« Reply #3 on: March 05, 2007, 02:20:04 pm »
If all signups, as you mentioned, have the same fname and lname you could run a custom query with a tool like PhpMyAdmin, commonly accessible from your hosting control panel:

SQL:
Code: [Select]
DELETE FROM lm_users WHERE fname != '' AND fname = lname;

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting