![]() |
var codeofheight
hi
i dont know how it works in JS but in PHP is var codeofheight = "<?php echo $codeofheight; ?>"; but i need it in JS... the opossite of this code :sad: thnx |
Re: var codeofheight
A cryptic question... "The opposite of this code"?
I'm going to take a wild stab in the dark, and guess you're trying to do something like... <?php $my_variable = <Something Coming From Javascript> ?>So rather than in the code you posted, where JS obtains a value from PHP. Instead, you want PHP to obtain a value from JS? Look into "AJAX". It's used to send data from Javascript to PHP. It's not as straightforward as the inverse in your first post, but it will get the job done. |
| All times are GMT -5. The time now is 9:07 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC