Menu
Hi all,
I use php for form validation. In case a field does not validate ok, I have a rePost function:
[code=php]
foreach ($_POST as $field => $value) {
$q .= $field.”=”.urlencode($value).”&”;
}
header(“Location: new_member.php?error=”.$errField.”&”.$q); die();
The urlencode() takes good care of i.e. “&”, but what is the best way to handle single and double quotes when sending back the fields in the query string??
Thanks in advance!
/Claes