Hey (bradgrafelman, drew010 --> thanks for replying to all my postts....)
bradgrafelman, i can't use urlencode because of the fact that the user types in a title, a description and a link into a textarea. When the form is submitted (method=get), all of that stuff is in the headers...
so i really can't use that... (i'm sorry i should have mentioned the textarea stuff before...)
Can i use something like this ?
$querystring = $_SERVER['QUERY_STRING'];
$arg_array = explode("&", $querystring);
foreach($arg_array as $key_val_pair) {
$key_val = explode ("=", $key_val_pair);
if ($key_val[0] =="banners_title") {
$banners_title = $key_val[1];
}
if ($key_val[0] =="banners_description") {
$banners_description = $key_val[1];
}
if ($key_val[0] =="banners_url") {
$banners_url = $key_val[1];
}
}
$banners_url= rawurldecode($banners_url); //translate url encoded characters of the form %xx
$banners_description= rawurldecode($banners_description);
$banners_title = rawurldecode($banners_title);
$banners_url = addslashes($banners_url); //to protect
$banners_description = addslashes($banners_description); //to protect
$banners_title = addslashes($banners_title); //to protect