Hello Karl,

Friday, July 27, 2001, 1:08:05 PM, you wrote:


KP> Does anyone know how to pass php variables to a javascript for processing.

KP> I have a DHTML menu system that requires variables be attached to the url
KP> contained within it. Using echo does not print the variable to the url.

KP> Is there another way?

KP> Thx in advance.

<script language=javascript>
varname='<? echo $varname; ?>';

some usage of varname;

</script>

I had a same problem some time ago. There must be a single quotes
neither is it string nor any other type.

I hope it helps

-- 
Best regards,
 Daniel                            mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to