View Single Post
Old 04-23-2008, 11:13 AM   #2 (permalink)
jamiemac2005
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Northampton, UK
Posts: 935
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)


Re: Driving me crazy!

in the html you use the id "contactform" multiple times, i'm sure thats not correct usage, it may work but i thought an id was supposed to be unique...

i'm sorry i can't remember a lot of PHP so i don't know the problem, when you do get it sorted though you could start to stop spamming using basic javascript on your html page:

change
<input type="submit" value="Submit" />

to

<input type="submit" value="Submit" onSubmit="this.disabled=true;" />

i think .disabled is the property, (the button should grey out after having been clicked)
so that when one set of information has been submitted the user can not re-submit the data without having re-loaded the page first.
This will only stop people from clicking the submit button a million times when the page loads slowly (and submitting the data millions of times).

On the PHP side of things i don't know what you'd do to stop spamming, but i'm sure contact/query boxes aren't spammed a lot are they?

Hope any of this helped,
Jamey
jamiemac2005 is offline   Reply With Quote