On 17 Jan 2006
george.lengel@gmail.com wrote:
[color=blue]
> Hello experts,
>
> I have been struggling for days to solve this problem and every
> suggestion I find via Google does not work for me. There is probably a
> solution out there that will do what I want, but I probably have not
> properly implemented the solutions I find.
>
> I am trying to make a page to allow personnel the ability to search our
> backend DB (which is Ingres 2.0) through a web interface. Ingres has a
> cgi program called ICE that can receive SQL queries and return data to
> format. I have lots of pages setup that query correctly and work really
> well. The one I am struggling with is searching our parts database
> because I want to allow wildcard searches. The Ingres wildcard is a %
> sign so I can input 011% and it will find any item number that starts
> with 011. I can use %011% and it will find any part with 011 in the
> string. I only care about three fields item_no, description_1, and
> description_2 for searching.
>
> I have set up a simple form that queries properly using only hidden
> variables and GET and no JS, but the wildcards have to be explicitly
> entered in the form. I want use JS to validate the form and add the
> wildcards for the user.[/color]
[snip]
Before sending the query, any literal '%' characters in the URL must be
escaped as '%25'. See RFC 2396, Sections 2.4 to 2.4.3:
http://www.faqs.org/rfcs/rfc2396.html ftp://ftp.isi.edu/in-notes/rfc2396.txt
--
Norman De Forest
http://www.chebucto.ns.ca/~af380/Profile.html af380@chebucto.ns.ca [=||=] (At the Sign of the Flashing Cursor)
"Oh how I miss the days when it was easier to catch gonorhea than a
computer virus." -- Big Will in alt.comp.virus, March 9, 2005