Thanks everyone. Both url_quote and url_quote_plus seem to work. http://servername/file?name=&dtml-name;&id=&dtml-id; does not work however as it doesn't properly replace the spaces. -- Guy Davis mailto:davis@arc.ab.ca (403) 210-5334 Alberta Research Council