how to initialize the php variable inside javascript function?

From: Date: Mon, 14 Aug 2000 14:12:59 +0000
Subject: how to initialize the php variable inside javascript function?
Groups: php.general 
Request: Send a blank email to php-general+get-11571@lists.php.net to get a copy of this message
Hello Friends, How can we at the server side have the information about "How much time a user stayed on our page?". We at the client side can know it, How to initialize the php variable inside the javascript function? i need something like the following. function javascriptfun() { <?php $abc = something; ?> } Any kind of help is really needed and I will be very grateful for that. Thanking you, From:- Ami Choksi

« previous php.general (#11571) next »