![]() |
|
#1
|
||||||||||||
|
||||||||||||
|
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> If something already exists to do this, it'd be even better. My System: Toshiba Satellite A200-28P
|
|
#2
|
||||||||||||
|
||||||||||||
|
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
|
|
#3
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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. |