how to do this

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
reddurango
Forum Newbie
Posts: 13
Joined: Sun Aug 16, 2009 9:17 am

how to do this

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: how to do this

Post by requinix »

To those interested: I think "almacen" means "deposit". From Arabic.

Code: Select all

?>
<script type="text/javascript">
var value = "<?=addslashes($variable)?>";
// ...
</script>
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: how to do this

Post by susrisha »

:offtopic: . .Just wondering how many languages tasairis knows.. :P
Post Reply