I have a select where it displays some information for the period by date for the selected id.

After the output of the table, the checkbox is assigned to each row, after selecting the necessary entries by the checkbox, you can delete the entry.

When deleting entries, I return the page to the selected id in this way.

$rnd = get_rnd(); echo '<a href="stack_over.php?id='.$id.'&amp;rnd='.$rnd.'">вернуться</a>'; 

Tell me please, is it possible to realize the return of the page where the table with my select for the selected id was opened?

  • Return to the page from which the transition was header("location: ".$_SERVER['HTTP_REFERER']); - Walfter 1:59 pm
  • Thank you very much for the answer. Is there any small example of how this is done? Because in php so far is very weak. - LisB
  • Remove the entire output of the type echo , print_r in the file and, after performing the necessary operations, simply insert the line header("location: ".$_SERVER['HTTP_REFERER']); - Walfter 2:07 pm
  • I cannot show an example without a code (your attempts), I do not know what you have there and how to help you. Show what you were trying to do - Walfter
  • Thanks a lot, really, added the header ("location:". $ _ SERVER ['HTTP_REFERER']); Returned to the page with the table! - LisB pm

0