Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-10-2006, 02:31 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2004
Posts: 34
Default perl .. param problem ...


heya!!! I am trying to pass a parameter by the value 7_+series to a cgi script. What happens is, when I try getting this value by using $co->param() function, it returns me 7_series as of required 7_+series ... isn't it strange ?? I am pretty sure that there was no problem of character escaping issues 'cos the server logs show me a http request with that same attribute value .. can someone help me out plz ....

thanks,
sridhar
sridhar8310 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-10-2006, 07:38 AM   #2 (permalink)
Back to School Mr. Bean !
 
mod-the-pc's Avatar
 
Join Date: Apr 2004
Location: Chennai
Posts: 343
Default Re: perl .. param problem ...

As per RFC 1738: Uniform Resource Locators (URL) specification, + is a special character and it should be encoded when its not intended for its original use. Try 7_%2Bseries instead
__________________
Desktop: P4 2.8E, Intel 865GBF, 512MB Hynix PC3200, Samsung SV1204H 120GB, Samsung SW-248F, Creative Inspire 4400, Samsung 793MB, Compro PVR/FM, WinLIRC

Laptop: HP Pavilion dv8210us
mod-the-pc is offline  
Old 03-10-2006, 10:16 AM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2004
Posts: 34
Default Re: perl .. param problem ...

hey thanks man!! that's indeed true as I just check it. However, isn't the scape function in js supposed to the job of converting the characters like space and so on in the params to % characters ... somehow it doesn't do this thingy for +. That was the main reason I was confused ...
sridhar8310 is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear
- by abhidev
- by clmlbx
- by Sarath

Advertisement




All times are GMT +5.5. The time now is 04:42 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2