Page 1 of 1

How to insert php code within javascript/html code?

Posted: Wed Oct 29, 2014 2:17 am
by Darrel
How to insert php code within javascript/html code?

I need to store small data so i want to use php to write data to text file..how insert the code within javascript.html code?My code need to be saved as .html or .php?

Re: How to insert php code within javascript/html code?

Posted: Wed Oct 29, 2014 7:12 am
by Celauran
Sounds like an AJAX request might be the way to go, but it's hard to say for certain without really knowing what you're trying to accomplish.