Page 1 of 1

Frames and Table based design

Posted: Wed Mar 31, 2004 4:37 am
by Pozor
Hello,

My page run a long time with a frame based design. The searchengines dont like this because they act like a textbrowser (i think so).
Now i'm still redesigning my page into a Table based design.

My Questions are:

1 How do you solve the basic problem to give the information to the next page what should be showed?

The way i think isn't bad is with url append like ?show=news
additional variables (flow control) could be easily added to the url append with ...&var=bla


2. How do you put all content into the basic Layout?

Some people suggested to use SSI to include the files.
I think its better to include the files with include(), because the content is dynamic (menu, news and all other files)
I dont use Templates, but im tinking about if i should...


3. How is your solution for this problem? Or whitch solution do you prefer and why?


greez Pozor

PS: i hope i choosed the right forum

Posted: Wed Mar 31, 2004 4:53 am
by code_monkey
I think what you said there is all pretty much a good solution to the problem.

In response to 1. you could also use a form to send variables from one page to another eg;

Code: Select all

<form action="page.php" method="POST">
<input type="hidden" name="show" value="news">
<input type="submit" name="submit" value="News">
</form>
You can add additional variables simply as extra <input> blocks. The submit button can also be swapped for an image button which would probably look a bit better.

In answer to you second question, I think all of those methods are acceptable, personally I prefer to use a template system these days such as smarty http://smarty.php.net/ which has some funky features.

So in answer to 3. I would probably use a template system, with a mixture of urls/forms/session variables to send information to the next page.

Posted: Wed Mar 31, 2004 4:12 pm
by Pozor
Hello,

thanks for the reply, but your not the only one who has an opinion about this?

And an other question, can i use a template-system, and still use my own sessionmanagement?


greez Pozor

PS: sorry i never looked at template system, but i'm going to use it (maybe soon)

Posted: Thu Apr 01, 2004 11:59 pm
by Pozor
Hello,

i've just installed smarty and it looks good, it has all that what you need... :P

maybe i'll gonna use this for all my files...


thanks Pozor