RE: Removing "+" in $ENV{QUERY_STRING}



Thanks Justin...
Never worked with CGI...It's a new module for me...Digging it...Thanks
again.

-----Original Message-----
From: Justin Hawkins [mailto:justin@xxxxxxxxxxxxx]
Sent: Monday, February 25, 2008 11:25 PM
To: manojkumarg@xxxxxxxxxx
Cc: beginners@xxxxxxxx
Subject: Re: Removing "+" in $ENV{QUERY_STRING}

manojkumarg@xxxxxxxxxx wrote:
Hello List,

I am trying to build a webpage where I can enter hostname in a text box
and up on hitting the key this searches multiple .csv files and prints them
in the webpage itself. I am facing a problem with $ENV(QUERY_STRING} which
take "+" when the textbox is entered with spaces in the beginning or end.

Tried to remove the starting and end spaces by
s/^\s+// and s/\s+$// .Nothing works for me here. Am I doing any thing
wrong here?

Can any one help me in removing the "+" in the printed value? Because of
this "+" in the variable my search does not work.

Many people have already dealt with the problems of parsing the CGI
environment variables. No need to re-invent that wheel :-)

Check out the 'CGI' module. The examples in the documentation will get
you started very quickly.

$ perldoc CGI

- Justin

--
Justin Hawkins
justin@xxxxxxxxxxxxx
http://hawkins.id.au/~justin

.



Relevant Pages

  • Re: CGI tags HTML problem, not really sure
    ... >> I basically don't know how to pass changing information into the external ... included in "Dynamic C" with the Rabbit development kit. ... Are you saying I need to write a CGI file in C that runs on the PC with the ... web page on and that is accessed by the webpage but the PC CGI calls the ...
    (alt.html)
  • Re: HowTo: Recover CLIENT-side information
    ... no CGI, PERL, etc... ... I've built a webpage and want to "gather info" from someone looking at my webpage. ... Doesn't your FAI propose one (form cgi) ...
    (comp.lang.javascript)
  • Re: Transfer data from webpage form to database
    ... from pyPgSQL import PgSQL ... import cgi ... import cgitb ... transfer the user input (on my webpage) to my postgresql database. ...
    (comp.lang.python)
  • HowTo: Recover CLIENT-side information
    ... no CGI, PERL, etc... ... I've built a webpage and ... want to "gather info" from someone looking at my webpage. ...
    (comp.lang.javascript)
  • RE: NT 4.0 Cannot Access Secure Sites
    ... Did you try removing the security fix that prevented your access to the ... credentials to the secure page? ...
    (microsoft.public.windows.server.security)