[PHP] Put code in a seperate file
I have a page with a div-tag.
[html] <html> <head> <title>My Page</title> </head> <body> The cow says: <div id="mydiv"></div> </body> </html> [/html] I want to put some Javascript or PHP code inside there to put the content of the following file into the div called "mydiv": PHP Code:
|
Can't you use
PHP Code:
|
Quote:
|
Code:
<html> |
Quote:
But I wish there was a way to use Javascript to change the content to be read from another file containing HTML/PHP. |
Quote:
|
Quote:
|
Start here then. The first thing you see will help you understand why I double-quoted "AJAX". Cheers :)
|
All times are GMT -5. The time now is 10:46 PM. |