S Sandeep N New member Jun 5, 2009 #1 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
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
L Liars never lies New member Jun 5, 2009 #3 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
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