I have index.php
which uploads a file to server and sets several PHP variables (like $target_folder_and_file_name
).
index.php
also has the following line (it was originally index.html
):
<script language="JavaScript" src="main.js.php"></script>
After index.php
returned to the browser, the browsers asks for main.js.php
from the server (right?).
Can I access somehow $target_folder_and_file_name
from the PHP code in main.js.php ?