All,
I'm looking for a quick and dirty implementation of a 'no-multple submit' function using PHP. I know there's lots of JS stuff out there that does this, but I don't trust it as the only source of validation and my form is already using a lot of JS which is making it harder to even implement a JS stop-multple-submit function even if I was comforatable with JS.
Is there a way to do this using PHP?
Multiple Form Submission
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Code: Select all
if (!empty($_POST['somevar']) && !isset($_SESSION['formFlag']))
{
$_SESSION['formFlag'] = true;
//process here
}