Click to See Complete Forum and Search --> : Minor design issue; suggestions needed


GarrettVD
11-28-2006, 12:16 PM
Hello,

I'm currently designing a website, ePalsConnect, which will (hopefully) be a website where users can find penpals world-wide etc. But, at the moment I'm having a little design dilemma. The menu for the site works by php includes. An excerpt of code for it:


<tr>
<!-- START OF TABS -->
<?
$pages = array(
'home' => 'home.php',
'profile' => 'profile.php',
'search' => 'search.php',
'signup' => 'signup.php'
);
?>
<td id="tab1" style="background: #80c1e7 url('images/tab_active.gif') left fixed;">
<a href="<? echo $_SERVER['PHP_SELF']; ?>?p=home" onClick="tabID('block1');">Home</a>
</td>
<td id="tab2" style="background: #80c1e7 url('images/tab_inactive.gif') left fixed;">
<a href="<? echo $_SERVER['PHP_SELF']; ?>?p=profile" onClick="tabID('block2');">Profile</a>
</td>
<td id="tab3" style="background: #80c1e7 url('images/tab_inactive.gif') left fixed;">
<a href="<? echo $_SERVER['PHP_SELF']; ?>?p=search" onClick="tabID('block3');">Search</a>
</td>
<!-- END OF TABS -->
<td id="mainCellTopLeft"/>
<td id="mainCellTop"/>
<td id="mainCellTopRight"/>
</tr>
<tr>
<td id="mainCellMiddle" colspan="6">
<?
if($_GET["p"] == "home") {
include("home.php");
}
elseif($_GET["p"] == "profile") {
include("profile.php");
}
elseif($_GET["p"] == "search") {
include("search.php");
}
elseif(!isset($_GET["p"])) {
include("home.php");
}
?>
</td>


however, I am currently working on a signup page (signup.php) that has a form that submits to itself via the POST method. however, as you might imagine, this will not work with my current navigation scheme because the page needs to reload... So, my dilemma is: Should I use <frame> instead of my current nav. scheme, or should I copy the template for the index.php page, and rename it 'signup.php' with the signup page content? I don't want to make some design mistakes that I'll regret later. What do you reccommend? Doing that for dynamic content, and using my original nav scheme for static content?? looking forward to your replies...

-G.

ray326
11-28-2006, 01:05 PM
I'd do a separate page for signup. There's no need for a user to navigate away from a signup page in general. All it needs is submit and cancel.