+ 13
Can i use javascript in php?
13 Respostas
+ 15
Why would you want to use js in phpđđđ... Are trying to make a bomb or something
+ 13
Both are Scripting Language..đđ
+ 13
Nonnnnnnnn đđđđđ
+ 11
Lol
+ 10
No, i just want to knowđđ
+ 10
Hahahaha, a useless activityđ€Łđ€Ł
+ 10
I did. I was tried to use PHP in JS lol
+ 8
hahahađđ€Ł
+ 7
<?php
$user_type = app_user_type();
$js_code =<<<JS
<script language="JavaScript">
if(comment = prompt("Please tell me why would you want to use JS inside PHP?"){
alert("Hahahahahahaha, {$user_type} â + comment);
}
else{
alert("Good Luck my Friend!");
}
</script>
JS;
?>
+ 7
PHP it's scripting language
+ 4
Yes, you can use javascript and php on the same website.
If you want to put javascript code in a php script use this
echo "javascript code here";
+ 1
what is a php