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
Frame or Include?
Moderators: egami, macek, gesf
-
- php-forum GURU
- Posts: 628
- Joined: Sat Jun 06, 2015 11:46 am
- Contact:
Use an include!
Hello.
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:-
<!--webbot bot="Include" U-Include="mainmenu.html" TAG="BODY" --> 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.

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:-
<!--webbot bot="Include" U-Include="mainmenu.html" TAG="BODY" --> 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.
-
- php-forum GURU
- Posts: 628
- Joined: Sat Jun 06, 2015 11:46 am
- Contact:
Just like this:
What editor are you using?
http://element121.com/2015/09/16/how-do ... -php-file/
Code: Select all
<code>include (“my_file_to_include.php”);</code>
http://element121.com/2015/09/16/how-do ... -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.
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.
-
- php-forum GURU
- Posts: 628
- Joined: Sat Jun 06, 2015 11:46 am
- Contact:
I've never heard of either of those, I use Netbeans or Sublime most of the time. Both are free.