Contact Form 7
Assigning a number (3 posts)

  1. motopoeta
    Posted 5 years ago #

    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.

  2. webjunk
    Posted 5 years ago #

    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.

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

    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.

  3. webjunk
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic