php - Uploadify: sending data with scriptData -


I want to send session value with uploadify script I am trying the following in JavaScript:

  'scriptData': {'name': '& lt ;? Php echo $ _SESSION [name] ;? & Gt; '}   

and in php script I am receiving value like this:

  $ name = $ _GET [' name '];   

The script data, instead of getting the value stored in the session, & lt ;? Php echo $ _SESSION [name] ;? & Gt; , for example Peter. Can anyone tell me how can I decide this? Thank you

I think that's what you want.

  'scriptdata': {'name': & lt ;? Php echo "'". $ _ Session [name] "';? & Gt;}    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -