Skip to content

u/AdorableZeppelin

In this archive from Oct 2010 to Feb 2015

4
posts
52
comments
0
media
123
score

Top posts

UE3 Vs. Unity for a simple FPS

I have a project due in a class in about 4 weeks, and I'm wanting to make a super simple FPS. It doesn't have to be good, or even finished, I just basically have to show that I understand how it works enough to actually make it. So, given my time constraint and that it doesn't have to be very good (...

11 points11 comments
Open on Reddit

Easily change images in a gallery?

I'm wanting to add a JQuery image gallery that's going to have ~4 images in it to a static page. What I would like to do is have these images changeable without having to edit code (making this for a client, so easily changing images is a must). I've searched around but can't really figure out a way...

3 points4 comments
Open on Reddit

Top comments

You can also put a hidden field at the bottom of the form with a hidden element with the value of time(). Then in the script that sends it, have an if statement at the top that's simply if((time() - $_POST['time']) > 5) { Basically it says if the form was submitted in less than 5 seconds (or any other reasonable amount of time it would take to fill out the form) then it wouldn't send.

This won't completely eliminate spammers, but it will slow them down. And it's less annoying than a captcha.

Another similar way is to just have a field that is hidden via CSS. Then once the form is submitted check to make sure that field is blank (since real people wouldn't be able to see it to fill it out). If it's not, then you know to not send the mail.

You should also look into validation.

7 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.