Frame or Include?

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

Post Reply
IChaps
New php-forum User
New php-forum User
Posts: 123
Joined: Tue Mar 01, 2016 3:07 pm

Sun May 08, 2016 11:15 am

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

element121
php-forum Fan User
php-forum Fan User
Posts: 628
Joined: Sat Jun 06, 2015 11:46 am
Contact:

Sun May 08, 2016 12:03 pm

Use an include!

IChaps
New php-forum User
New php-forum User
Posts: 123
Joined: Tue Mar 01, 2016 3:07 pm

Sun May 08, 2016 1:43 pm

Thank you very much for the reminder. :)

Ian.

IChaps
New php-forum User
New php-forum User
Posts: 123
Joined: Tue Mar 01, 2016 3:07 pm

Fri May 13, 2016 10:19 am

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:-
<!--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.

element121
php-forum Fan User
php-forum Fan User
Posts: 628
Joined: Sat Jun 06, 2015 11:46 am
Contact:

Fri May 13, 2016 10:38 am

Just like this:

Code: Select all

<code>include (“my_file_to_include.php”);</code>
What editor are you using?

http://element121.com/2015/09/16/how-do ... -php-file/

IChaps
New php-forum User
New php-forum User
Posts: 123
Joined: Tue Mar 01, 2016 3:07 pm

Fri May 13, 2016 2:02 pm

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.

element121
php-forum Fan User
php-forum Fan User
Posts: 628
Joined: Sat Jun 06, 2015 11:46 am
Contact:

Sat May 14, 2016 4:28 am

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

Post Reply