send variables from php to jquery? -
ive found a forum when I click on a thread, send the GAT variables to another PHP page via the URL That shows that thread.
url? Threadid = 10
And Ive found a reply form below. When user submits submit submit, he will execute jquery which will call a php through AJAX. I have to pass the Threaded variable in AJAXclass php file, but I do not know how to do it.
ive tried in phpfile:
$ threadid = $ _GET ['threadid']; Include "Jsfile.php";
and then in jsfile:
But this does not work, how can I do this? What is the right way to go here? Cookies? Jason? Please help!
EDIT: BTW ... This approach is not bad JS file is capable of php code I have to include it as a php file and do not use it to link to php file To do? Slightly lost ...
threaded
is a request variable, So I think you have to get it from the $ _ GET
array:
$ Get ("static / js / ajxcale_rely.fp", {Threaded: '& lt ;? php echo $ _GET ["Threaded"]? & Gt;'}, Function (Data) { $ _ GET
Describes the array in more detail. This includes the request variables from the URL. The suggestion I gave will also work.
Comments
Post a Comment