PHP question please help !!!!?

Sandeep N

New member
i want to assign a javascript variable say

var next

from a php variable probably fetched by data base

i.e i might have a variable named $test in php i want that value to be assigned to javascript variable var next

answers are greatly appreciated
 
You can write a dynamic Javascript script (not only HTML can be dynamically written by PHP)

or

you can use cookies to pass small amount of data

or

you can use AJAX although this might be an overkill for simple problem
 
Back
Top