I'm just learning jquery , The thing is that how can I make jquery and php contact each other in one single page ? if there is an example I really appreciate it!
Answered by diafol 3,720 in a post from
Jump to Post
Depends on the direction of communication and whether you want communication after the page has left the server.
You can include php inside js scripts for scripts running on page load...
var myVar =<?php echo $hisVar;?>;
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.