yeah sure, just echo the javascript: <?php echo '<script>var myPhpVariable = "'. $my_var . '";</script>'; ?>
Related Contents:
- How to prevent the “Confirm Form Resubmission” dialog?
- CodeIgniter removing index.php from url
- How to call a JavaScript function from PHP?
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- Sending email with gmail smtp with codeigniter email library
- Highlight row when the checkbox is true
- How to access PHP variables in JavaScript or jQuery rather than [duplicate]
- How to load a controller from another controller in codeigniter?
- Multiple files upload in Codeigniter
- Send array with Ajax to PHP script
- How can I get the user’s local time instead of the server’s time?
- Difference between Javascript and PHP [closed]
- CodeIgniter: Create new helper?
- Send JSON data from Javascript to PHP?
- Access PHP var from external javascript file
- JavaScript: How do I create JSONP?
- Pass a JS variable to a PHP variable
- Unserialize PHP Array in Javascript
- Detect if Android app has been installed on the device using a mobile web page – PHP and JS
- Accessing Class Properties with Spaces
- Parse a JavaScript file through PHP
- Only variable references should be returned by reference – Codeigniter
- Redirect with CodeIgniter
- jQuery AJAX form using mail() PHP script sends email, but POST data from HTML form is undefined
- GMail fsockopen(): SSL operation failed error with Codeigniter and XAMPP
- Jquery – Uncaught TypeError: Cannot use ‘in’ operator to search for ‘324’ in
- How can we open a link in private browsing mode
- How to assign Php variable value to Javascript variable? [duplicate]
- How to detect country / location of visitor? [duplicate]
- Use Javascript to access a variable passed through Twig
- How to call codeigniter controller function from view
- Grouping WHERE clauses in Codeigniter
- Codeigniter session is not working on PHP 7
- onbeforeprint() and onafterprint() equivalent for non IE browsers
- Remove index.php in codeigniter 2.1.0
- what is the difference between site_url() and base_url()?
- Routing controllers in subfolders using CodeIgniter
- Saving WAV File Recorded in Chrome to Server
- how to put javascript variable in php echo [closed]
- How can I pass variables from JavaScript to PHP?
- CodeIgniter: 404 Page Not Found on Live Server
- Trying to get property of non-object – CodeIgniter
- Codeigniter multiple file upload messes file extension
- How to pass an array using PHP & Ajax to Javascript?
- Javascript function post and call php script
- How can I block direct access to my JavaScript files?
- How to get data in function extend controller?
- How to select rows where column value IS NOT NULL using CodeIgniter’s ActiveRecord?
- Removing black borders 4:3 on youtube thumbnails
- json parse error with double quotes