Passing information via Header()

I am working on a CMS for a client. This CMS contains a database of participants for a number of events in different districts. Using a dropdownlist an administrator can view the participants of a specific district.

Now when the administrator deletes a participant the delete function utilizes the header() function to reload the same page minus the deleted participant:

header('Location: .');

The problem is, after the delete and it redirects it defaults back to the default district rather than the district the administrator was currently working in.

So, I want to know if it’s possible to pass a variable or key value pairs using the header() function.

Sure, you need to construct the entire URL though.

For example:

header('Location: http://yoururl/participants.html?district=' . urlencode($district));

You’d have to work out the value of the variables you want to send of course.