Reply to Re: Frames and Browser Reload Question

Your name:

Reply:


Posted by strawberry on 04/12/06 10:44

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

[Back to original 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

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