pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keary Suska <hierophant@pcisys.net>
To: Postgres-PHP <pgsql-php@postgresql.org>
Subject: Re: Problem with html select lists and postgres
Date: Fri, 08 Nov 2002 10:07:39 -0700
Message-ID: <B9F13D6B.15292%hierophant@pcisys.net> (raw)
In-Reply-To: <GGEBJDFLJINOAKJMLOPGKEFBCBAA.almah@wanadoo.es>

on 11/8/02 1:00 AM, almah@wanadoo.es purportedly said:

> When I use a select list (to have an idea about what I mean, what I call a
> "select list" is usually called as well a "combo box" in a visual language,
> for instance, Visual C++), well, I was telling that when using a "HTML
> select list" and any option contains a blank like this:
> 
> <select name=category>
> <option value='System Manager'> System Manager </option>
> <option value='Marketing Manager'> Manager Manager </option>
> <option value='Technical Manager'> Technical Manager </option>
> 
> </select>
> 
> Then, when try to use the associated variable to the select list, in this
> case "category", I don't get the right value but the first part of it, for
> example:
> 
> If I select the "System Manager" option I will get in the variable
> "category" the value "System" because after that there is a blank.

This likely means that you have a broken user agent (browser), or bad code.
The solution to the problem should be to url-encode your values. Hence
'System Manager' becomes 'System%20Manager'. If this doesn't work,
re-examine your code. The problem is probably there.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"




view thread (2+ messages)

Message-ID: <B9F13D6B.15292%hierophant@pcisys.net>
Permalink:  ../B9F13D6B.15292%25hierophant@pcisys.net/
Also on:    postgresql.org/message-id/B9F13D6B.15292%hierophant@pcisys.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: hierophant@pcisys.net
  Subject: Re: Problem with html select lists and postgres
  In-Reply-To: <B9F13D6B.15292%hierophant@pcisys.net>
  References: <GGEBJDFLJINOAKJMLOPGKEFBCBAA.almah@wanadoo.es> <B9F13D6B.15292%hierophant@pcisys.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox