# Loosing slashes between JS and Flash

**URL:** <https://forum.kirupa.com/t/loosing-slashes-between-js-and-flash/64770>\
**Category:** Uncategorized\
**Created:** [September 19, 2004, 8:39pm UTC](https://forum.kirupa.com/t/loosing-slashes-between-js-and-flash/64770 "2004-09-19T20:39:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [September 19, 2004, 8:39pm UTC](https://forum.kirupa.com/t/loosing-slashes-between-js-and-flash/64770/1 "2004-09-19T20:39:28Z")

</div>

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](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!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 8:21pm UTC](https://forum.kirupa.com/t/loosing-slashes-between-js-and-flash/64770/2 "2004-09-25T20:21:34Z")

</div>

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
<?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

 <?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.  
🙂
