[thelist] HTML Forms: Handeling blank spaces

Chris W. Parker cparker at swatgear.com
Fri Jul 11 13:46:34 CDT 2003


Casey Crookston <mailto:casey at thecrookstons.com> wrote:

> This should be a simple one:
> 
> I've got a simple HTML form using mehod = post, and there are a
> couple of hidden values.  Trouble is, every time one of these hidden
> values contains a blank space, everything after the space is dropped.
> How do I force it to convert to  %20 (or what ever it is for blank)
> instead of dropping it?

Umm... I don't get it...

But going by instinct, use a + instead of a space.

Instead of:
<input ... value="and tings of dat sort"/>

Use:
<input ... value="and+tings+of+dat+sort"/>


Is that what you mean?


Chris.


More information about the thelist mailing list