Jump to content

php noob problem - require_once


Recommended Posts

Guest donnie
Hi, im doing a simple site and im pretty much total noob in PHP, just learning it so sorry

[code]
<div class="next">
<?php @ require_once ("next.html"); ?>
</div>
<div class="navi">
<?php @ require_once ("navi.php"); ?>
</div>

<div class="cont">
<?php @ require_once ('./$page.html'); ?>
</div>[/code]

So thats the code and what i want to do is that the menu (where all the links are) are in navi.php file. And when you click one of those links the page opens in "cont" box. But for some reason that doesnt work. Where's the problem. Im not sure but should i have somewhere something like $_GET

thanks,
donnie
Link to comment
https://forums.phpfreaks.com/topic/13383-php-noob-problem-require_once/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.