Re: Question on sending PhP variable results to an HTML page to be displayed.
| From: | Jon Bennett | Date: | Mon, 01 Dec 2003 14:09:41 +0000 |
| Subject: | Re: Question on sending PhP variable results to an HTML page to be displayed. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171464@lists.php.net to get a copy of this message | ||
Hi Al,
I'd add a scrolling tag to your iFrame, as you won't ever need it to scroll.
<iframe width=550 height=25 scrolling=false marginwidth=0 marginheight=0 frameborder=0 scrolling ="no" src="cache.php"></iframe>
hth
Thanks,
Jon
jon bennett | jon@jben.net
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net/
On 1 Dec 2003, at 14:04, Al Costanzo wrote:
Hi Jay, This will not work because the page in question ends in .HTML but I did discover a way to do what I need and an answer to many other posts. Here is the answer: To make a PHP command to execute on a .html page create another page ending in .php with the code there. Where you need to display this in your .html page use the <IFRAME> html tag. It works just fine. A person gave me this idea by emailing me and saying why not use a frameset to do this. This is kinda what IFRAME does but it is more like a little window. Same concept but it does not interfere with how a search engine indexes a website. Anyone interested in seeing the resulting code, it is located at: http://www.dynamicsubmission.com and a one line php program returns the date to the page. I would like to thank everyone for their ideas and this is a very useful resource to have. I may know a great deal about seach engines, but when it comes to php... well ... thanks for the help! Al Costanzo ----- Original Message ----- From: "Jay Blanchard" <jay.blanchard@niicommunications.com> To: "Al Costanzo" <al@akc.com>; <php-general@lists.php.net> Sent: Monday, December 01, 2003 8:49 AM Subject: RE: [PHP] Question on sending PhP variable results to an HTML page to be displayed. [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> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php