+ 2

can I link JavaScript with PHP and how??

27th Oct 2016, 9:28 PM
Alaa Tarek
Alaa Tarek - avatar
4 Answers
+ 3
use jquery ajax to send and load data
27th Oct 2016, 11:07 PM
Dennis Glowiszyn
Dennis Glowiszyn - avatar
+ 2
you can have PHP echoing javaScript like this: <?php $myName = "seamiki"; echo '<script> alert("Hello '.$myName.'!!"); </script>'; ?>
29th Oct 2016, 8:53 PM
seamiki
seamiki - avatar
+ 1
xss? when you echo get or post variable is xss attack
28th Oct 2016, 7:01 PM
Dennis Glowiszyn
Dennis Glowiszyn - avatar
- 1
x s, s,
28th Oct 2016, 6:54 PM
Rabia