lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO


Register


Reply
 
Thread Tools
  #1  
Old 6th May 2009, 09:50
MJM
Donor Group
 
Or similar. Basically I want to test my submit forms against spam, but doing it manually would take forever.
I used to have a script for it, but somehow managed to lose it and no longer remember how to write one either.
I'm sure I should use the DOM model for it, but I haven't needed that for ages (the less you use it, the better)

Since I don't have the form accessible to me from here, I wrote this off the top of my head. It's pretty standard.
Code:
<div align="center" class="commentarea"><form name="post" action="mailer.php" method="POST" enctype="multipart/form-data">
<b>Name</b> <input class=inputtext type=text name=name size="28"><span id="tdname"></span>
<b>E-mail</b> <input class=inputtext type=text name=email size="28"><span id="tdemail"></span>
<b>Subject</b> <input class=inputtext type=text name=sub size="35">
<b>Comment</b> <textarea class=inputtext name=com cols="48" rows="4" wrap=soft></textarea>
<b>File</b> <input type=file name=upfile size="35">
<input type=submit value="Submit" accesskey="s">
</form></div>
It'd be enough if you point me in the right direction / give an example. Once I have a refresh, I can probably remember enough to write it myself. I need to be able to tell it to post every X seconds and attach a list of various files from my local hard drive.

If something already exists to do this, it'd be even better.
__________________

My System: Toshiba Satellite A200-28P

Processor(s):
Intel Core 2 Duo T8100
Motherboard:
Mobile Intel PM965 Express Chipset
RAM Memory:
1024 + 2048MB DDR2 667
Graphics Card(s):
ATI HD 2600 XT
Sound Card:
Toshiba Bass Enhanced Sound System
Hard Drive(s):
200GB 5400RPM
Optical Drive(s):
DVD Super Multi
Case / PSU:
Satellite A200 Series
Cooling:
Stock
Network / Internet:
Intel 4965AGN
Monitor(s):
15.4" 1,280x800 Toshiba TruBrite
Operating System(s):
Windows Vista SP1 / Fedora i386
  #2  
Old 6th May 2009, 13:18
Moderator Group
 
Do you want to do this in PHP?

Like a script that runs in PHP?

I don't understand how this is going to test your form against spam?
__________________
serverguy

__________________

My System: Eclipse

Processor(s):
Intel C2D E7200 OC'd @ 3.6Ghz
Motherboard:
Asus P5Q Pro
RAM Memory:
OCZ 8GB 800Mhz
Graphics Card(s):
Saphire Radeon 4850
Sound Card:
Onboard
Hard Drive(s):
Vast
Optical Drive(s):
Sony al cheapo one.
Case / PSU:
Antec Three Hundred
Cooling:
Arctic Cooler 7 Pro, 3 case fans.
Network / Internet:
Titan ADSL
Monitor(s):
Dual 19" LCD
Operating System(s):
XP SP3
  #3  
Old 6th May 2009, 14:15
MJM
Donor Group
 
A javascript or something. What I want to do is test against spam and flooding.

It remembers a message for ten minutes and if the same message is sent again it's discarded. If an IP is trying to send more than one message every minute, it's discarded. If messages contain potentially dangerous characters, it is discarded.

I just want to see how it would do against a massive amount (which'll probably never be produced, but still)
  #4  
Old 6th May 2009, 14:40
Moderator Group
 
Did you write this in PHP?

If you know PHP, you could probably write a PHP script to test it with.

Programmings not my thing.
__________________
serverguy

  #5  
Old 6th May 2009, 15:23
MJM
Donor Group
 
Nah, it's just simple emailer thing. PHP isn't really my strong point. I know you can access these things via the DOM model, it's just I don't remember how and am not sure where to start looking.

I have no idea how to do this via PHP. My skills are really basic, (once upon a time) simple mailer scripts and some simple imports... Nothing major.
Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.