SitePoint Sponsor |
|
User Tag List
Results 1 to 10 of 10
Hybrid View
-
Oct 2, 2007, 08:01 #1
- Join Date
- Aug 2007
- Posts
- 55
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Possible code to stop form mail spam?
I am getting nothing but spam in my form on one of my sites; but that is nothing new as I am seeing...
Site is: www.coosbaytv.com click on SUBMIT button for the form.
Is there a simple piece of code I could slip in that would require something like a full phone number (including area code)? This would stop about 95% of all the spam because I have noticed the same number is entered which is, 123456.
If this isn't possible, I am open to like suggestions that would work. However, I am not a coder or programmer so it has to be very simple.
Jay
-
Oct 2, 2007, 08:13 #2
- Join Date
- Dec 2002
- Location
- Aylmer, QC, Canada
- Posts
- 409
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I ask people to enter a specific work ... something I have displayed.
Works so far. Not complicated either.
There's aslo CAPTCHA method?
-
Oct 2, 2007, 08:22 #3
- Join Date
- Aug 2007
- Posts
- 55
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks for the quick reply but you lost me already...
1) can you explain further as to asking people to enter a specific work?
2) I will Google the CAPTCHA
Thanks, Jay
-
Oct 2, 2007, 08:26 #4
- Join Date
- Dec 2002
- Location
- Aylmer, QC, Canada
- Posts
- 409
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It's not the most scientific way but it works on for this site.
http://widowswalk.ca/comments/
-
Oct 2, 2007, 08:33 #5
- Join Date
- Aug 2007
- Posts
- 55
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
YES! This is exactly what I was looking for.
Now, as a musician, I am sure you can relate but I am a video producer and media person... I am not a coder which is why I use DreamWeaver.
That said and at the risk of ticking you off with my stupidity, the most important piece of all of this is how to enforce this. Is there something you did that checks the result of what was used in the "progressive" field that rejects the submission if it is not correct?
Again, I am not far along enough in this stuff to look at your code and answer this question myself (or I would).
Thanks a bunch!!!
Jay
-
Oct 2, 2007, 09:32 #6
- Join Date
- Dec 2002
- Location
- Aylmer, QC, Canada
- Posts
- 409
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
HAHA!!! No worries for thinking of feeling stupid! You're asking questions at least
Yes, there's a check in the background. The form is written in PHP and once, the user clicks submit, it checks to make sure the word entered in the box is the same as the one I want. If not, it displays a message and brings the form back up.
-
Oct 2, 2007, 12:17 #7
- Join Date
- Jul 2003
- Location
- Kent
- Posts
- 1,921
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
You should try optimising the size of your images!
A 303kB banner is excessive, I sat watching it sloooowly fill in - I didn't wait for the other 6mB to down load though. (and the banner is 1816px wide, when it only needs to be about 720px...)
A quick screen capture and cutting out of the image resulted in a file a mere 16kB for the banner image.Dr John
www.kidneydialysis.org.uk
-
Oct 2, 2007, 12:31 #8
- Join Date
- Aug 2007
- Posts
- 55
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks karinne:
would you mind sharing the code?
As I said, this would solve so many problems for me.
Jay
-
Oct 3, 2007, 05:52 #9
- Join Date
- Dec 2002
- Location
- Aylmer, QC, Canada
- Posts
- 409
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hey Jay, I don't have access to the code right now but it's just a simple
PHP Code:$word = 'progressive';
$typedword = $_GET['typedword'];
if ($typedwrod = $word) { ... }
else { .... }
-
Oct 2, 2007, 12:36 #10
- Join Date
- Aug 2007
- Posts
- 55
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Dr John:
Thanks for the feedback...
The site will be revised very soon as I am learning new skills daily.
For one thing, the flower banner will be removed and the "Latest Story" banner will be put in it's place.
The video will be replaced with a placeholder image and once clicked will then go to video as "opt-in".
However, as you can see with the funkiness of the box/border issues with the lower third of the page, if you can help solve this dilemma I would love it!
Jay
Bookmarks