• Hey guys,

    I am looking for a way to assign a number that counts up every time sometime submits a form. This way, I’d be able to keep track of the order in which things come in. Is there a way to do this? Please let me know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Don’t think from the form itself but could probably do some variation of the old fashioned hit counter into the plugin’s function maybe for the form function. Let’s me think. Been a while.

    <?php
    $counthits = ("thehits.txt");
    $hits = file($counthits);
    $hits[0] ++;
    $fp = fopen($counthits , "w");
    fputs($fp , "$hits[0]");
    fclose($fp);
    ?>

    Then just echo $hits into the mail template. There are better coders on here who probably have something better. Can see how that could be useful. Think I’ll play with it later.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Contact Form 7] Assigning a number’ is closed to new replies.