sponsored links
Mombu the Programming Forum
>
Programming
>
how to pass a variable from PHP to Javascript
User Name
Remember Me?
Password
REGISTER NOW!
Mark Forums Read
sponsored links
Use our Hints:
mac macintosh imac osx
homebuilt
tech
xbase
oracle
1
18th December 10:05
chris
External User
Posts: 1
how to pass a variable from PHP to Javascript?
Hi,
I want to pass the variable 'x' to javascript.
<script type="text/javascript">
<?php
x=1
?>
// in ASP it would be: alert(<%=x%>)
alert(<?=x?>) ???
</script>
Thanks Chris
chris
sponsored links
«
Previous Thread (possible-to-mix)
|
Next Thread (newbie-to)
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
test 33Switch to Hybrid Mode
Switch to Threaded Mode
Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666