used PHP inside Javascript? [closed]

Sultana

New Member
\[code\]$('#categories_parent').change(function(){var categories = $(this).val();"<? json_encode($cat) = form::get_parent(?>"categories"<?) ?>";ver cat = "<?=$cat?>";alert(cat); });\[/code\]why i cant right php in java help mei tray json_encode and without json_encode not work\[code\]$('#categories_parent').change(function(){var categories = $(this).val();"<? json_encode($cat) = form::get_parent(?>"categories"<?) ?>";ver cat = "<?=$cat?>";alert(cat); });\[/code\]
 
Back
Top