Thank you Vincent!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Valentin wrote:
Hi,
Is any way to write JavaScript code into PHP function or to send PHP's
variables values to the JScript variables?
Thanks,
Of course, you can create dynamicaly javascript via php, ie:
echo "
var yourvar = $onephpvar ;
" ;
Is that what you were asking for ?
Vincent.
--
PH
Not unless you pass the variable to the next page explicitly. You can do
this by either encoding it into the URL of the next page:
http://your.com/page.php?var=value or by putting the variable into an HTML
form and submitting it.
regards,
Mikey
"Kemu" <[EMAIL PROTECTED]> wrote in message
[EMAI
You need to define the type of file you are creating.
Like when you create wml pages with php.
Header("Content-Type: text/javascript");
or summing to that effect.
have a look at www.weberdev.com
"Mp" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, php-ge
4 matches
Mail list logo