php variables to javascript

From: Date: Tue, 04 May 2004 12:36:06 +0000
Subject: php variables to javascript
Groups: php.general 
Request: Send a blank email to php-general+get-185299@lists.php.net to get a copy of this message
>Thanks Torsten > >I'm kinda new to this whole php/javascript thing so could you show how to >embed this link into the php script. I'm having a bit hard time with this. echo "<a href=\"#\" onClick=\"openPopup('target.php?var1=$value1&amp;var2= $value2', 'other popup params here');\">link</a>"; Exchange openPopup with your JS function name and var1/var2 with your variable names. Regards, Torsten > >Thanks >-Bill

« previous php.general (#185299) next »