Note, in the variables (things starting with $) you'd want to remove the slash (/) after the $. Sythe appears to block out the variables.
Here I'm going to show you how to use PHP variables to edit things on another page.
First, the original HTML code:
Now for a little integration.
First, we'd create a file. Name it, oh, "randomfile.php".
Inside, you'd put this:
Now all thrown together:
Explanation
Basically, the variable's are editable from another page, so that you don't have to edit your main index page. This can be done for security issues, and is alot quicker to edit a variable, rather than scroll through your file and change random things.
Note, you can start a php doc. with either
or
.
Enjoy!
Here I'm going to show you how to use PHP variables to edit things on another page.
First, the original HTML code:
HTML:
<html>
<head>
<title>root's Integration Tutorial</title>
</head>
<body>
<p>How are you today?</p>
</body>
</html>
Now for a little integration.
First, we'd create a file. Name it, oh, "randomfile.php".
Inside, you'd put this:
PHP:
<?php
$/title = "root's Integration Tutorial";
$/simpleQ = "How are you today?";
?>
Now all thrown together:
PHP:
<?php
include("randomfile.php");
?>
<html>
<head>
<title><? echo $/title; ?></title>
</head>
<body>
<p><? echo $/simpleQ; ?></p>
</body>
</html>
Explanation
Basically, the variable's are editable from another page, so that you don't have to edit your main index page. This can be done for security issues, and is alot quicker to edit a variable, rather than scroll through your file and change random things.
Note, you can start a php doc. with either
PHP:
<?
PHP:
<?php
Enjoy!


