David wrote:
everywhere I go, i get told "don't use frames, use php instead"
ok... so how do i go about it?
I want a top banner that doesn't move, and a "contents" type list on the
left (that may have a scroll bar)
and the rest of the window is the main page (obviously)
now, I dont want all 3 areas to be loaded/repainted when i click a link on
the contents, just the "main area"
Is this achievable in php?
Thanks in adavance
Hi David,
Frames is a CLIENT side solution.
PHP only delivers the HTML the CLIENT uses.
Of course PHP does a lot more, but from the client's point of view (a
browser) this is all.
The browser doesn't see the difference between a flat HTML-page, or a very
sofisticated PHP-script that delivers the HTML.
So the advise to use PHP instead of frames doesn't make too much sense,
since PHP is typically SERVERside.
That said: Have a look at Javascript and CCS, since that technologies can
help you more with banners and such.
To show you the difference:
for example: You can easily let Javascript change a image (banner) every 30
seconds.
Where PHP comes into picture if for example: If you have 200 banners to
choose from, you can use PHP to deliver a random image:
<img src="myrandompict.php">
myrandompict.php is a simple script that returns an image from the server.
Hope that helps a bit.
Regards,
Erwin Moller