can you include arrays[] in header urls?
I have the following but it doesn't work so I am thinking it might not be possible.
$name = strtolower($_POST["name"]);
$name = stripslashes(ucwords($name));
$email = strtolower($_POST["email"]);
$emailx ="/^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$/";
$alphaspace ="/^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/";
if ($name=="")
{
$error[] ="Name is a required field please complete and submit it again.";
}
elseif (preg_match($alphaspace, $name) ==false)
{
$error[] ="Please fill in a correct value for name numbers are not allowed.";
}
if ($email=="")
{
$error[] ="Email is a required field please complete and submit it again.";
}
elseif (preg_match($emailx, $email) ==false)
{
$error[] ="Please fill in a correct email address";
}
for ($i=0; $i<count($error);$i++)
{
header ("location: ../careers.php?error=$error[$i]");
exit;
}