Question Locked

Problem

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How we can initialize php variables within javascript code?

2 replies

by blckspder

I think you have to pretty much include the PHP script in the JavaScript code

e.g.
//here is some JavaScript perhaps and if statement, then your php

//ending JavaScript code here

Thats the way I have done it in the past, not sure if it is "correct" or not. hope that helps.

This discussion is closed to new replies.