CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Passing paths using a URL

 



seriousfun
Novice

Apr 2, 2000, 5:39 AM

Post #1 of 2 (854 views)
Passing paths using a URL Can't Post

I have a form which allows the input of a path eg: http://www.somewhere.com/cgi/bin/script.cgi
when I process the form the URL holds %252F where the forward slash was.
What do I do to pass this path correctly?
Any help or alternat method would be appreciated.


Cure
User

Apr 2, 2000, 9:11 AM

Post #2 of 2 (854 views)
Re: Passing paths using a URL [In reply to] Can't Post

Hi

Recommendation-> use CGI.pm to process your form.

Im using the escape function from CGI.pm to URL-encode my data and it works great.


So-> instead of seeing this in your url %252F you would see a forward slash.


Example:: lets say I have variable name pwdone and the value is //*io ->well then to encode this to the url regulation I leave this up to the escape function....


cure.cgi?pwdone=$q->escape('//*io');


Cure



 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives