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
Post a Comment