So I have a form where it redirects you to a error page if you missed a field.

The problem with this is, that it clears all the fields that you did type in. So I want it to carry these fields over to the error page, even if some are missing.

Here's some of the code in my form to help you see how I'm doing this...

	$name = $_POST['name'];
	$email = $_POST['email'];
	$sex = $_POST['sex'];
	$security = $_POST['security'];
	$comments = $_POST['comments'];
	if (!empty($errors)) {
		header("Location: feedback_error.php?errors=" . urlencode(implode(", ", $errors)));
I know how this can be achieved, but I can't wrap my head around how I might get it to work.

Basically I can check if they entered something other then the default value and pass that through in the url. Then read it back on the error page from the url. I'm just not sure how I could achieve this.

I'm going to go and try to figure it out, but if anyone can help that'd be awesome.