RE: [PHP] Question on sending PhP variable results to an HTML page to be displayed.
| From: | Jay Blanchard | Date: | Mon, 01 Dec 2003 13:49:07 +0000 |
| Subject: | RE: [PHP] Question on sending PhP variable results to an HTML page to be displayed. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171460@lists.php.net to get a copy of this message | ||
[snip]
If you use the date function in PhP you can get the date and it will not
change in the cache since the actual code is not on the page that
generated
it.
My question is how do I get the answer that I have in a PHP variable
back to
an HTML page and give it lets say to JavaScript to display.
[/snip]
Why do you need to give it to JavaScript to display? Consider this in
your HTML ....
<?php echo date("m - d - Y"); ?><br>