|
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
|