I want script_id to be sent to uploadify using script data, I am trying the following in jQuery code:
'scriptData': {'session_id': '& lt ;? Php echo session_id (); ? & Gt; '} and at php
$ session_id = $ _REQUEST [' session_id ']; But the problem is that instead of getting session ID, I get this value
If I try php code in script.data without quotation marks, then this syntax returns error. Can someone please help me how I can send the session_id price? Thank you.
It seems that your PHP is not being executed in JavaScript code. It is possible because it is in a javascript file, not in any PHP.
The simplest (and worst) solution would be to move that code to a PHP file in order to execute that PHP.
Comments
Post a Comment