Is it such easy or just not possible??? Do ia have to use AJAX ?(noob)
I have a Javascript variable:
var UserID = 1;
I want to use the UserID for an already loaded/created PHP -Array. HOW ?
Is it such easy or just not possible??? Do ia have to use AJAX ?(noob)
I have a Javascript variable:
var UserID = 1;
I want to use the UserID for an already loaded/created PHP -Array. HOW ?
Hiya,
Yep ajax is the way, your converting from client side to server side code.
You could easily make a javascript value from php by echoing out script but not the other way around
RikdeVos said
Just use jQuery. It makes life a lot easier![]()
$.post('file.php',{'userid':1},function(data){
console.log(data);
}); 
COPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.