[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Empty spaces turn to %20

Subject: Re: Empty spaces turn to %20
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Sun, 30 Mar 2003 00:57:51 +0000
query_string spaces
Jarkko.Moilanen@xxxxxx wrote:
Hi!

I am getting data from html form, which has text input fields. I pass the QUERY_STRING to sh script which turns it in to XML. Then I transform the XML to html with XSLT.

Problem is how ever that the browser generates %20 to every empty space.

This is correct: the space is a prohibited character in the MIME Content Type used for sending data from forms to a server because when it is sent with a GET instead of a POST, it is transmitted as part of the URL, where a space can break the action of the browser or the server.

You need to run a program like uncgi on the server, which

(a) automatically translates urlencoded data back to normal text;

(b) splits up QUERY_STRING into your named fields, prefixed with
    WWW_

Also consider using POST instead of GET if you're not already doing so.

///Peter




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.