Loosing slashes between JS and Flash

Hello,

I’ve been spending hours on that pb, i can’t figure it out, i need help!!
I’m using idiov01 disk browser for flash as source. The only thing i don’t understand if why does JS looses the slashes when it sends to flash a location on the local hard drive…

The source can be found here…
http://www.impulsedigital.com/idio/idio-v1/idiov01.zip

I don’t wanna use the whole thing, i’m trying to adapt it so the upload is done by PHP via FTP. So i thought i just needed to get the path and file name back to flash which is bringing me this problem, it looses the slashes…

Please help me i’m desperate!!

Havn’t checked your source, but a problem I had with combining PHP and Javascript was that the PHP was using the " quotes " in my JS, when it should have ignored them for e.g:

<?php
 i=1
 if (i==1) {
 <script>
 document.location="http://google.com";
 </script>
 }
 else {
 echo "Ho hum";
 }
 ?>

This problem was solved by issuing back slashes ‘’ infront of each quote.

Of course now I know to just use:


 <?php
  i=1
  if (i==1) {
 ?>
  <script>
  document.location="http://google.com";
  </script>
 <?php }
  else { 
 ?>
  Ho hum
 <?php }
  ?>

That might help you, or it might be completely irrelevant, I know it’s different languages, but if your problem is the same as that it can often be solved by something like that.
:slight_smile: