Thanks, that's one of the expressions I tried out to no avail.  I am
trying to append an error message to a div much like how the form plug-
in allows you to set a target container for server output.  So, this
entire function is within an if statement and is already being echoed.


On Jan 22, 4:12 am, Liam Potter <radioactiv...@gmail.com> wrote:
> you would need to have the javascript with the php in the same file so
> it would be something like this
>
> <?php $var = testing; ?>
>
> <script type="text/javascript">
> $(function () {
>     $("#someDiv").append("Some value is:<b><?php $var ?></b>");});
>
> </script>
>
> Nikola wrote:
> > Hello, I am trying to figure out how to .append a php session $var to
> > a given div.  I'm not sure what the correct syntax is.  I was trying
> > something along the lines of how I'd display the var in HTML:
>
> > $("#someDiv").append("Some value is:<b>'.$var.'</b>");
>
> > I'm not sure the best way to go about this.  Any input is
> > appreciated.  Thanks much.

Reply via email to