Click to See Complete Forum and Search --> : Inserting content without using PHP???
bowww
09-14-2003, 05:47 PM
is there a way to insert content (ie another html page) into a space in a different html page without using PHP? basically, what i want to do is put this page
http://home.comcast.net/~bargess/index2.php
in the white space of this page
http://home.comcast.net/~bargess/index.php
without using PHP because the server im going to host it on doesnt support PHP.
thanks!
Yes, you just need to use an iframe (http://www.w3.org/TR/html401/present/frames.html#h-16.5).
bowww
09-14-2003, 06:35 PM
now heres my next question. can i have an if argument with iframes? basically i want it to react the same as PHP where if /index.php?id=example is in the url, only the example.php page is shown. also, is there a way to have it not get cut off the way it is here:
http://home.comcast.net/~bargess/index.htm
thanks alot
Remove scrolling="no" from the <iframe> tag to allow the iframe to scroll. Also, I'm not entirely sure what you mean by your other question, but you can change the content of the iframe with a link like this:
<a href="someother.htm" target="theiframename">
bowww
09-14-2003, 08:17 PM
Originally posted by pyro
Remove scrolling="no" from the <iframe> tag to allow the iframe to scroll. Also, I'm not entirely sure what you mean by your other question, but you can change the content of the iframe with a link like this:
<a href="someother.htm" target="theiframename">
yea, youll have to excuse my lack of knowledge on this subject. im all self taught and have just been learning as ive gone along and only learned the things that i needed for what i wanted to do.
i do have the scrolling set at "no" and the page still gets cut off. i also have all of the tables/iframe on the page that would be affected set at "100%" for the height. what i want to do works fine with php so im not sure what the problem is with that.
i have used that link code but if i have more than one iframe on the page, both get displayed. i want just one to be displayed by specifying which iframe in the url. not sure if thats possible, this thing is all new to me. thats what i meant with the if argument. like "if "index.htm=example" display "example.htm"" sort of the way it is with php
First of all, this might help you in your understanding of frames: http://www.w3schools.com/html/html_frames.asp
Originally posted by bowww
do have the scrolling set at "no" and the page still gets cut off.That is the problem. Remove it, and it should work better.
As far as linking goes, just make sure you give each iframe a unique name (such as iframe1 and iframe2 or something more descriptive [perhaps content and links, etc...]).
bowww
09-14-2003, 08:33 PM
removing the scrolling command just makes it scroll
thanks alot for your help but this doesnt seem like the easy fix i was hoping for. guess ill just stick with the php that i already have and find a new host
Originally posted by bowww
removing the scrolling command just makes it scrollI though that's what you wanted...
I would always recommend a host that supports PHP... :D
bowww
09-14-2003, 08:55 PM
Originally posted by pyro
I though that's what you wanted...
I would always recommend a host that supports PHP... :D
no, no, no... lol
i dont want the iframe to get cut off and i dont want the iframe to scroll... i want the non-iframe part of the page to adjust to the iframe
and i think i have a host for PHP... i hear nothing but good things about influxhost.net plus those one time plans are exactly what im looking for, cheap and that is all the space i need- more than enough actually. ive been alittle worried about being locked in like that but they were highly recommended from a good friend.
i wanted to host this site of mine on the free space i get with comcast but they dont support PHP. i also wanted ad-free
Looking over the hosting plans at http://www.influxhost.net/, I'd have to agree. They look quite nice. Very similar to http://www.dr2.net, which is where I get my hosting through. CPanel 7 is the bomb... :)
bowww
09-14-2003, 09:59 PM
ive heard some say plesk is much better than cpanel but i guess thats for another debate