只需urlencode即可,在b.php获取变量和平常一样,浏览器会自动处理的
header('location:b.php?dbtable='.$rbtable.'&id='.$lastid.'&flname='.$flname.'&flparent='.urlencode($flparent));