ummmm.... ok.... I guess first of all... I'm rather confused about/by what was being sugguested to me in the last two posts.... what I'm trying to do basically is merge the following two pages that work into one that works....
Working Chat Login Script:
<html>
<head><title>Login Test</title>
</head>
<BODY>
<body text="red" link="#FFFF66" alink="#FF6600" vlink="#0099CC" bgcolor="#000000"
background="/images/www/rh/bg_red-marble1.jpg">
<center>
<table>
<form name="login" method="post" action="../chat2.cgi">
<tr>
<td align="center" class="infoBoxContents">Email Address:</td>
<td align="center" class="infoBoxContents">
<input type="text" name="$username" maxlength="96" size="19" value="<?
echo $username ?>">
</td>
</tr>
<tr>
<td align="center" class="infoBoxContents"> Password:</td>
<td align="center" class="infoBoxContents">
<input type="password" name="password" maxlength="40" size="19" value="">
</td>
</tr>
</table>
<INPUT TYPE=hidden NAME="action" VALUE="login">
<input type="submit" value="Sign In" title=" Sign In " SSL>
</form>
</center>
</body>
</html>
Working Catalog login script:
<html>
<head><title>Login Test</title>
</head>
<BODY>
<body text="red" link="#FFFF66" alink="#FF6600" vlink="#0099CC" bgcolor="#000000"
background="/images/www/rh/bg_red-marble1.jpg">
<center>
<table>
<form name="login" method="post" action="../catalog/login.php?action=process">
<tr>
<td align="center" class="infoBoxContents">Email Address:</td>
<td align="center" class="infoBoxContents">
<input type="text" name="$username" maxlength="96" size="19" value="<?
echo $username ?>">
</td>
</tr>
<tr>
<td align="center" class="infoBoxContents"> Password:</td>
<td align="center" class="infoBoxContents">
<input type="password" name="password" maxlength="40" size="19" value="">
</td>
</tr>
</table>
<input type="submit" value="Sign In" title=" Sign In " SSL>
</form>
</center>
</body>
</html>
What I've done to try to merge the two of these login scripts and set things up so that they'll be ready when I'm ready for the third script to work...
<html>
<head><title>Login Test</title>
</head>
<BODY>
<body text="red" link="#FFFF66" alink="#FF6600" vlink="#0099CC" bgcolor="#000000"
background="/images/www/rh/bg_red-marble1.jpg">
<center>
<form method=post action="<?echo $PHP_SELF ?>">
<input type=radio name="$program" value="catalog">Catalog
<input type=radio name="$program" value="chat">Chat
<input type=radio name="$program" value="mb">RH Forums
<INPUT TYPE="submit" value="Choose Program">
</form>
<table>
<form name="login" method="post" action="<? if ($program = 'catalog') { ?>
../catalog/login.php?action=process<? } elseif ($program = 'chat') {
?>../chat2.cgi<? } ?>">
<tr>
<td align="center" class="infoBoxContents">Email Address:</td>
<td align="center" class="infoBoxContents">
<input type="text" name="$username" maxlength="96" size="19" value="<?
echo $username ?>">
</td>
</tr>
<tr>
<td align="center" class="infoBoxContents"> Password:</td>
<td align="center" class="infoBoxContents">
<input type="password" name="password" maxlength="40" size="19" value="">
</td>
</tr>
</table>
<INPUT TYPE=hidden NAME="action" VALUE="login">
<input type="submit" value="Sign In" title=" Sign In " SSL>
</form>
</center>
</body>
</html>
everything else as far as seeing if the accounts and passwords match up or if the user is banned or anything else like that the programs take care of themselves .... I'm just trying to get a simple way to get the information to the programs so that people can log in directly from main page and upon doing so go right into what they need to to use the programs... with out having to navigate themselves over to the page and then log in... and then do what they need to do....