Friday, July 28, 2006

Treatment of space in browser request parameter submission

if a query parameter of type is left blank by the user the
server will get a alue of "". if the user puts in " " then the server will get the string of spaces, in other words the browser does not strip spaces to "" string.

My impression was that the value of the param o the server will be "null" if the user left the form input field blank.


" yahoo " will be sent as " yahoo " as is and not as "yahoo".

So the conclusion is that none of the form fields will be null on the server side.