|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to submit a string containing a "/" to a CGI script.
Do I have to encode the slash in any way? I want something in javascript like Open ('path/image.jpg'); This creates an error. Any suggestions are appreciated. |
|
#2
|
|||
|
|||
|
First Suggestion:
Be more specific ! Include the error message you are getting. Also, include a bit more of the code. Perhaps the problem is not where you think it is.Second Suggestion: If you are having a JavaScript problem, perhaps you should post it in the Javascript Forum. Probably get more help there. If it is Perl, then execute on the First suggestion and disregard the second suggestion heh.If you're problem is Perl, and going what you have here, you may want to try and escape the slash. Like this: Code:
open('path\/image.jgp');
The backslash will take any functionality away from the slash if that is indeed the problem. Be a bit more specific and we'll try to help out more.
__________________
- dsb - ![]() Perl Guy |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Encoding slash problem???? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|