Frame or Include?

A

Anonymous

Guest
Hello.

Can I just check?

I've got a menu created in html.

I'd like to include this menu on more then one page, however I can't remember if I should use iframe, Include or use the old frames.

I've tried iframe, but it remains blank, the file I'm trying to insert is in the same folder/directory.

Thanks
 
Hello. :oops:

Sorry about posting again with this.
I've been trying to use include to insert a menu in to my html template.

I've used:-
and a variation of it, but I can't get it to work.

I'd like to ask what would be the correct coding/way of achieving the include please?
The menu and the template files are both in the same directory/folder.

Thank You.
 
Just like this:
Code:
<code>include (“my_file_to_include.php”);</code>
What editor are you using?

http://element121.com/2015/09/16/how-do-you-include-frequently-used-code-in-another-php-file/
 
Hello element121,

Thank you for your reply.
The editor I'm using is WeBuilder 2016. I did try TopStyle editor for a while.

Once I'm able to insert the menu (mainmenu.html) into the template html file, it will make it easier later on.

Kind Regards.
 
I've never heard of either of those, I use Netbeans or Sublime most of the time. Both are free.
 
Back
Top