php - Print form every 30 minutes

406

I want to echo a form every 30 minutes each day for 18 repetition each day and this repetition will appear each 30 minutes and when the form appear the user will check the checkbox and submit the form and when he submits the form the form disappears and this will be do it 18 repetition per day.

I tried this code but it not show me any thing it still running without any output:

$dailydatetime=date('Y-m-d H:i:s');
$echo_time = time();
$interval = 1*60;
  while(true){
    if ($echo_time + $interval >= time()){
      echo "<form method='Post' action=''>";
      echo"<input type='checkbox' name='check' value=''>"  ;
      echo"<input type='submit' name='add' value='Check'>";  
      echo"</form>";  
      $echo_time = time(); 
    }

  }

People are also looking for solutions to the problem: php - Wordpress my query post doesn't display my post with category

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.