Page 1 of 1

how to do this

Posted: Sun Aug 16, 2009 8:24 pm
by reddurango
how can i get a php variable and almacen it into javascript variable, so i can get a session variable and use it for an if comparison in javascript

Re: how to do this

Posted: Sun Aug 16, 2009 11:05 pm
by requinix
To those interested: I think "almacen" means "deposit". From Arabic.

Code: Select all

?>
<script type="text/javascript">
var value = "<?=addslashes($variable)?>";
// ...
</script>

Re: how to do this

Posted: Sun Aug 16, 2009 11:08 pm
by susrisha
:offtopic: . .Just wondering how many languages tasairis knows.. :P