RE: Removing "+" in $ENV{QUERY_STRING}
- From: manojkumarg@xxxxxxxxxx (Manoj)
- Date: Mon, 25 Feb 2008 23:46:49 +0530
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,and up on hitting the key this searches multiple .csv files and prints them
I am trying to build a webpage where I can enter hostname in a text box
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.
wrong here?
Tried to remove the starting and end spaces by
s/^\s+// and s/\s+$// .Nothing works for me here. Am I doing any thing
this "+" in the variable my search does not work.
Can any one help me in removing the "+" in the printed value? Because of
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
.
- Follow-Ups:
- Re: Removing "+" in $ENV{QUERY_STRING}
- From: Randal L. Schwartz
- Re: Removing "+" in $ENV{QUERY_STRING}
- References:
- Removing "+" in $ENV{QUERY_STRING}
- From: manojkumarg
- Re: Removing "+" in $ENV{QUERY_STRING}
- From: Justin Hawkins
- Removing "+" in $ENV{QUERY_STRING}
- Prev by Date: Re: Removing "+" in $ENV{QUERY_STRING}
- Next by Date: Re: Removing "+" in $ENV{QUERY_STRING}
- Previous by thread: Re: Removing "+" in $ENV{QUERY_STRING}
- Next by thread: Re: Removing "+" in $ENV{QUERY_STRING}
- Index(es):
Relevant Pages
|