javascript - Trying to include PHP code in Jquery droppable -


i'm building form builder cms , i'm trying access information database on dropped elements.

the problem being; index file php , draggable/droppable element fetched javascript file variable. in js file tried adding variable want code executed:

txtboxedit += "<? include 'db.php' ?>"; 

but output when element dropped:

<!--? include 'db.php' ?--> 

any suggestions on how fix or maybe there's better way (probably is, haha). there "force" code outputted text?

thx


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -