your question doesn't make much sense. are you trying to pass to php if the user has javascript enabled? i'm actually using a javascript script which returns an array of files in a directory from php.
PHP Code:
<?php
header("content-type: application/x-javascript");
// this is where your php coding will go.
echo <<<javascript
your regular javscript
stuff will go 'here".
javascript;
// you can have more down here
echo <<<javascript2
and more 'javascript"
in here
javascript2;
// and again more php code
?>
edit: also, the file is saved as php