|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Member Join Date: Jul 2007 Location: Keller, TX
Posts: 183
![]() | I recently started toying with including my .php shopping cart pages in the .html frontend of my website. I tried using the include command several times without success but then discovered the iframe feature. I know that this is not compatible with all browsers but I am really impressed with how it looks. I just used some simple code such as shown below; <iframe src="www.websitename.com/index.php" width=100% height=100% frameborder="0" scrolling="no">Text to appear if browser not compatible</iframe> Has anyone else tried using iframe?? I love it!!!! ![]() |
| |
|
| |||||||
| | #2 | |
| iWEBTOOL Moderator Join Date: Apr 2006 Location: Hull, United Kingdom.
Posts: 334
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hi there, Quote:
I wouldn't use an iFrame for .php pages, you should use 'php Include'. A php code is a way of dynamically placing content onto a webpage, and it appears as if it is actually in the code. I use this so I can change sitewide copyright footers and menu's. All you simply do is embed this code into wherever you want the php page to appear; PHP Code: All you simply do is place the '<?' so the server knows it is using php, and the include so it knows what element it is using, and then the path to your php include file. The better thing about .php includes is that they follow your CSS rules, and HTML rules. So you don't have to manually code the appearance and behavior of your website. Hope this helped. Regards, Kieran Taylor. | |
| |
| | #3 |
| Member Join Date: Jul 2007 Location: Keller, TX
Posts: 183
![]() | Thanks Kieran, That's awesome, I will give that a try tonight... I also noticed that another bad thing about iframe is that it's hard to get working using a mac. I will perservere with the php include route. Thanks again, Martin |
| |
| | #4 |
| iWEBTOOL Moderator Join Date: Apr 2006 Location: Hull, United Kingdom.
Posts: 334
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hi there. OK let me know how things went and if you can't do it properly I'll help you if I have some spare time .Regards, Kieran Taylor. |
| |
| | #5 |
| iWEBTOOL SEO Advisor Join Date: Feb 2006
Posts: 242
![]() | Or you can add Code:
|
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Will .php Pages Get Indexed? (Newbie Question) | Martin81Vette | Search Engine Optimization (SEO) | 11 | 08-09-2007 03:01 PM |
| Sidewide links on 45 dir's (include 4 PR5). Cheap! | dimonf | Links for Sale | 0 | 06-12-2007 07:32 PM |
| sale website include domain pr3 | bill_1983 | Websites for Sale | 5 | 03-30-2007 09:43 AM |
| To IFrame or not to IFrame | RD_Gringa | General Talk | 18 | 03-28-2007 04:03 AM |
| Cache your pages with PhP | Nikolas | PHP | 2 | 01-09-2007 05:04 PM |