|
Posted by David Williams on 10/29/07 23:50
Can anyone see why the javascript var abc here is not getting assigned
the php var ("Hello")? in my code? I have tried a lot of different ways
but the javascript variable will not take.
Thanks,
David
<script>
var abc
<?php
$sizeof_image_array=5;
for($i=0;$i<$sizeof_image_array;$i++)
{
$temp_image_name="Hello";
echo 'abc=<?php echo $temp_image_name;?>;';
echo 'alert(abc);';
}
?>
</script>
--
David Williams
Georgia Institute of Technology, Atlanta Georgia, 30332
Email: dw149@prism.gatech.edu
[Back to original message]
|