title: What would be a good way to direct users to different URLs from one link?
body: <p>I've been working with PHP for a few months now. I've put together a small PHP site with three groups of users: admin, teacher, students.</p>
  
  <p>Here's what I would like to do:</p>
  
  <p>Students are in different groups. I have five different groups now. Each one of these five groups has access to a link that directs them to an online classroom. We can have a variable number of classrooms. </p>
  
  <p>Let's say we have five classrooms for Group 1. 
  Let's say that 20 students from Group 1 click on a link at 5:00p.m. This link brings them to an online classroom. I would like the first five students to be redirected to one classroom/link, the second five students redirected to another classroom/link, the third five students redirected to another classroom and so on.</p>
  
  <p>My questions is, would it be best to do this in PHP? JavaScript? Is this overly complicated or actually quite trivial?</p>
  
  <p>Cheers!</p>
  
  <p>Sam</p>