Jump to content

Duplicate form submission


Aureole

Recommended Posts

How can I stop a form submitting twice if the submit button is pressed more than once WITHOUT Javascript. I tried this:

 

<?php
if($queried == 0) {
    // Query goes here...
    $queried = 1;
    updatePostCount($_SESSION['mem_id']);
    header('Location: viewtopic.swr3?id='.$_GET['id'].'');
}
?>

 

I figured that would work but it doesn't...

Link to comment
https://forums.phpfreaks.com/topic/72290-duplicate-form-submission/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.