Xepher.Net Forums

Content => Web Design => Topic started by: Miluette on February 15, 2009, 11:23:20 AM

Title: Forms
Post by: Miluette on February 15, 2009, 11:23:20 AM
I finally found a free site that generates an actual email submission form for you. Yay! It's this one: http://www.tele-pro.co.uk/scripts/contact_form/

It worked when I tested it on the site. However, when I put it in this page (http://lf.senshuu.com/commish.php), suddenly it doesn't work anymore. It gives me the not-sent error every time, and I have no clue why. Boooo!

I hope it doesn't have anything to do with the way email-stuff's set up on the server. I thought this was pretty simple...
Title: Re: Forms
Post by: Xepher on February 15, 2009, 03:38:10 PM
You can't cheat with the "From" address. You had it set to just "LF" which isn't a valid email. You need to use an actual email you can receive bounces at. I changed it to your @xepher.net email address and it works fine.
Title: Re: Forms
Post by: Miluette on February 15, 2009, 04:08:58 PM
Ohhh. Wow. Hmm, but it worked when I used that pair of letters on the demo website to test it. Which doesn't make sense. The site didn't explain things very well (or, well, anything), so I wasn't actually sure what the "from" address was for...like the dummy I am, lol.
Title: Re: Forms
Post by: Xepher on February 15, 2009, 04:30:31 PM
Yeah, but the dummy site probably doesn't actually have a secure email server that demands properly formatted mail. :-)
Title: Re: Forms
Post by: Miluette on February 15, 2009, 04:53:11 PM
Oh my. I'm testing it again and the forms get emailed to me blank. D: I think everything code-related hates me today, lol.
Title: Re: Forms
Post by: Xepher on February 15, 2009, 06:02:26 PM
I think I fixed it for you. You can't have "enctype="text/plain" in the form, because that can't handle textareas IIRC. Either way, taking that out made it work. I may have slightly screwed up your pretty formatting in the process of troubleshooting though, but just in the "form" section of commish.php.
Title: Re: Forms
Post by: Miluette on February 15, 2009, 06:22:31 PM
Ah yes, it works! We are the form masters now. Thank you. XD
Title: Re: Forms
Post by: Miluette on February 20, 2009, 01:13:19 AM
Oh man, my Cutenews forms get a lot of spam now.

Apparently CN isn't all that secure or anything, but it's lightweight and I like that. It's pretty much just as I like it now, except for all the spam.

I looked on its forums and the best solution so far is to make it so no one can post URLs in the comments. (Edit: well, actually, it screws up a lot of things, so I just took it back out. :x) However, I don't exactly want to disallow that, like if someone was to mention theirs or another site in passing. What I WOULD like is a really lightweight captcha, like those little ones that ask you "what is 2 + 5?" or really compact image validation. I should probably have some kind of anti-spam protection for all the other forms on my sites now, too.

Edit: All right, I found some ways to negate spam in my non-news forms by adding css-hidden fields that are only valid if empty, so if the spambots fill those in it'll be like - DENIED! (I don't feel like digging around in Cutenews's code though :x)

But how does everyone else do it~? And is this a decent method.
Title: Re: Forms
Post by: griever on February 20, 2009, 12:11:13 PM
What about something like this?  http://recaptcha.net/  I've seen it used on other sites, some fairly large, and it seems pretty good.
Title: Re: Forms
Post by: Miluette on February 20, 2009, 01:00:42 PM
Yeah, I was about to do that (even signed up and got the key), but it looks kind of big and obnoxious. I don't have many commenters yet, and people are lazy sometimes; they may actually flinch away on sighting a captcha like that.

'Course they may also go away after seeing pages of spam. c_c; Oh, such a delicate balance~

I'll probably end up going with that.
Title: Re: Forms
Post by: Databits on February 20, 2009, 04:16:13 PM
Don't bother... you can draw right? Draw like 3 images and have a radio button question that says to select the image like X. Then on the back end if it's not the one selected just don't send the email.
Title: Re: Forms
Post by: Miluette on February 21, 2009, 04:41:44 AM
Ohhh... that's a good idea, too. XD

Someone just suggested I make an answer box like "is fire hot or cold?" so you'd have to type "yes," but actually this picture selection idea amuses me more. Although there's still a 1:3 chance the spam could still be posted.

Some of my spam looks like people posting on proxies, but I'm not too sure how all different forms of spam work anyway.
Title: Re: Forms
Post by: Databits on February 22, 2009, 06:09:58 PM
there's a lot of interesting stuff you can do to help prevent spam, the picture idea one was a simple one that will filter out pretty much every spam bot. Others are things like math questions, or that stupid little mixed image entry thing (which is easy to get around now).
Title: Re: Forms
Post by: Miluette on February 24, 2009, 09:40:26 PM
I found out what was wrong with the first spam prevention thing I tried, so now I have it set up to block anything that includes "http:" in the comments, since almost all the spam did. And so far, it works! The only spam I got today was a random generic, horribly typoed "great site!" kind of message from an obviously Russian spammer. I don't get spam like that. I mean, what is the point?! And you know they aren't being sincere.
Title: Re: Forms
Post by: Miluette on April 09, 2009, 07:47:01 AM
Oh my.

Suddenly, all my forms, which were working fine before, are not working. I wonder why. I know they were definitely working, like, last week...
Title: Re: Forms
Post by: Xepher on April 09, 2009, 02:42:24 PM
It could be the server move... or some glitch therein. Can you point me at a sample form I can test?
Title: Re: Forms
Post by: Miluette on April 09, 2009, 10:07:47 PM
http://ai.senshuu.com/commissions.php
http://lf.senshuu.com/commish.php
http://tarot.senshuu.com/rules.php#join

Suddenly all of them stopped working, and I know I didn't modify them anytime recently. D:!
Title: Re: Forms
Post by: Xepher on April 10, 2009, 02:38:08 PM
Ah ha! I did overlook something. The file permissions on a plugin for the esmtp authentication thingy was preventing user access, so it was trying to send mail without authenticating! It should be fixed now, and you should have a test message from one of your forms.
Title: Re: Forms
Post by: Miluette on April 10, 2009, 08:36:05 PM
Yus, it works now! Yay! Thanks.