|
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]
|