I've been asked to build an extra page to a php website. The thing is i'm having serious trouble building everything under the PHP header. I'm useless with PHP. Can i just have the PHP header with nav bar, at the top of the page, then make everything under it with HTML?If you are using PHP code on your page and you want the server to execute it as a PHP file, then you will need to rename the file with the .php extension (e.g. "yourfilename.php"). Then place your PHP code on the page where ever you want it to be. Make sure that every bit of PHP code is enclosed between the opening and closing PHP tags. Here is an overly simplified illustration:
blah
....your PHP header code...
?>
The rest of your HTML....
You can have HTML code before or after the PHP code as well. Just make sure the PHP code is enclosed in the start and end tags I mentioned above, or you'll get errors.
If you'd like to become better with PHP, I suggest you check out W3 Schools' free online tutorial: http://www.w3schools.com/php/default.asp#If you have any other info about this subject , Please add it free.# |
|
Posted on at 7:19 pm by mike.
selectfort.com :|: :|: edit