. :
header('location: index.php?id=' . urlencode($_POST['ac_id']) . '&err=' . urlencode($login));
urlencode() URL-.
http_build_query(), , URL- .
header('Location: index.php?' . http_build_query(array(
'id' => $_POST['ac_id'],
'err' => $login
)));
, . , RFC. URL.