ok, i know how to embed html into a php page but how to i embed another php page into it without copying the main source code? can anybody tell me source code? kinda like iframes for php? maybe i could try changing to html in the coding, then using an iframe to embed the other php page? thanks
Nah, Jason has the right idea. Here's an example with both:
<?php
echo "<html>
<body>
<p> This is HTML in PHP file!</p>";
include("./somepage.php");
?>
inlclude("file_source"); is the code you use to add all the script inside a different PHP file to the current one.
the includeis like a <script type='text/javascript' src='file_source'> which brings JAVASCRIPT from a different .js file to the current one.