Re: Variable assignment!
| From: | cmoewes at moewes dot com | Date: | Wed, 23 Aug 2000 13:14:18 +0000 |
| Subject: | Re: Variable assignment! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13150@lists.php.net to get a copy of this message | ||
What happened when you did that. The only thing that might have
happened is if the php variable was a tring, it doesn't appear that
you are using quotes around it
<script>
var someting = "<? echo $readmatter?>"
</script>
I see you have quotes inside the php section, but those get ised by
the echo statement. you could do
<? echo "/"$somematter/"" ?>
But that is harder to read.
On Wed, Aug 23, 2000 at 07:18:09PM +0530, Ramender Kishore wrote:
> How to assign a php variable's value to a javascript variable?
>
> This didn't work ... var somematter = <?php echo "$readmatter"; ?>
--
Christopher R. Moewes-Bystrom
cmoewes@moewes.com
http://www.moewes.com
http://www.linuxnovice.org