marvc
Thu 29th Aug '02, 8:06pm
This may be an off topic but I'm hoping for a little assistance or push in the right direction from this faaaabalous support team. :D
I'd like to prevent Guests browsing the site from being able to view some of my pages that I'd like only Members to have access to. I have a link (http://www.nubiint.com/main.php) that I want to appear only after the user registers or logins in and for the Register and Login boxes to appear on every page should the guest try to access the page in the browser. Going to the site and clicking main (http://www.nubiint.com/main.php) will give an idea.
This is what I have so far, but I'm not sure how to get to appear on every page. Plus I can seem to get the "Registration" page to work:
<!---Member Login--->
<form action='/forums/member.php' method='post'>
<input type='hidden' name='s' value=''>
<input type='hidden' name='action' value='login'>
<table summary='log-in' width='100%' border='0' cellpadding='5'>
<tr>
<td align='right'>
<font face="verdana, arial, helvetica" size="1" >
<font size=1>
<a href="/forums/register.php?action=signup/">Register</a></font>
Username:
<input type='text' value='' name='username' size='9' class='bginput'>
Password:
<input type='password' value='' name='password' size='9' class='bginput' >
<input type='submit' value='Login!' class='bginput'> </td>
</td></tr> </table>
</td>
</tr>
</table>
<!---Member Login Ends--->
Any help is appreciated.
I'd like to prevent Guests browsing the site from being able to view some of my pages that I'd like only Members to have access to. I have a link (http://www.nubiint.com/main.php) that I want to appear only after the user registers or logins in and for the Register and Login boxes to appear on every page should the guest try to access the page in the browser. Going to the site and clicking main (http://www.nubiint.com/main.php) will give an idea.
This is what I have so far, but I'm not sure how to get to appear on every page. Plus I can seem to get the "Registration" page to work:
<!---Member Login--->
<form action='/forums/member.php' method='post'>
<input type='hidden' name='s' value=''>
<input type='hidden' name='action' value='login'>
<table summary='log-in' width='100%' border='0' cellpadding='5'>
<tr>
<td align='right'>
<font face="verdana, arial, helvetica" size="1" >
<font size=1>
<a href="/forums/register.php?action=signup/">Register</a></font>
Username:
<input type='text' value='' name='username' size='9' class='bginput'>
Password:
<input type='password' value='' name='password' size='9' class='bginput' >
<input type='submit' value='Login!' class='bginput'> </td>
</td></tr> </table>
</td>
</tr>
</table>
<!---Member Login Ends--->
Any help is appreciated.