pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem with html select lists and postgres
2+ messages / 2 participants
[nested] [flat]

* Problem with html select lists and postgres
@ 2002-11-08 08:00  Carlos García Gómez <almah@wanadoo.es>
  0 siblings, 1 reply; 2+ messages in thread

From: Carlos García Gómez @ 2002-11-08 08:00 UTC (permalink / raw)
  To: pgsql-php

Hi all!

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.

	Please help meeee!!
( 

	If you don't have any idea could anybody tell me where can I find anything related to this problem??

	Thank you very much!





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Problem with html select lists and postgres
@ 2002-11-08 17:07  Keary Suska <hierophant@pcisys.net>
  parent: Carlos García Gómez <almah@wanadoo.es>
  0 siblings, 0 replies; 2+ messages in thread

From: Keary Suska @ 2002-11-08 17:07 UTC (permalink / raw)
  To: pgsql-php

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"




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-11-08 17:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-08 08:00 Problem with html select lists and postgres Carlos García Gómez <almah@wanadoo.es>
2002-11-08 17:07 ` Keary Suska <hierophant@pcisys.net>

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