You are here: Re: Frames and Browser Reload Question « PHP Programming Language « IT news, forums, messages
Re: Frames and Browser Reload Question

Posted by Jerry Stuckle on 04/12/06 15:30

strawberry wrote:
> Just a thought, seeing as you're using php anyway, why not just forget
> about frames and use an html table for your index instead, something
> like this...
>
> echo "<head>\n";
> //get ready to load the selected page
> if (isset($_GET['page']))
>
> {
> $page = $_GET['page'];
> $suffix = '.php';
> $ps = $page.$suffix;
> }
> else
> {
> $ps = 'home.php';
> }
> $page = ucwords($page);
> echo "<html>\n";
> echo "<head>\n";
> echo "<title>Welcome to My $page Page</title>\n";
>
> echo "</head>\n";
>
> Your table might look something like this...
>
> echo "<tr>\n";
> echo "<td><a href='$PHP_SELF?page=home'>Home</a></td>\n";
> echo "</tr>\n";
> echo "<tr>\n";
> echo "<td><a href='$PHP_SELF?page=news'>News</a></td>\n";
> echo "</tr>\n";
> echo "<tr>\n";
> echo "<td><a href='$PHP_SELF?page=projects'>Projects</a></td>\n";
> echo "</tr>\n";
>
> and a table within one of these pages (in this case the Projects page)
> might look something like this...
>
> echo "<th><a title='Sort by this column'
> href='$PHP_SELF?key=project_no'>Project No</a></th>\n";
>
> HTH
>

Or even better than tables, use CSS.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация