[eluser]Phil Sturgeon[/eluser]
Quote:I’m wanting it so that you can only press submit on a form once every 90 seconds.
Does this mean the submit form should be disabled (greyed out and unclickable) during this time, or should the form just return a message saying "you may only submit this form once every 90 seconds" like it does on these forums if you search too often?
If you want the submit button to be disabled, that is primarily a JavaScript related issue.
Otherwise, on submit success use $this->session->set_userdata('form_posted', time()); then do a comparison against that time on each submit to see if they should be allowed or not.