I just went in and cleaned it up a bit, but it's not even working properly because it's so inefficient. I don't even remember how to do what I want to do.
I have pages that the user can view if $logged_in = '1' and if $_GET['action'] == 'pagetheywant'. I figured I could probably do
CODE
if ( $logged_in == '1' )
{
switch ( $_GET['action']
{
switch ( $_GET['action']
and do it that way, but then something else comes into play...
A lot of these pages are forms you fill out; register, update profile, etc.
I'm current doing:
CODE
elseif ( $_GET['action'] == 'register' )
{
include './templates/register.html';
}
elseif ( $_POST['register'] )
{
$first_name = addslashes( $_POST['first_name'] );
{
include './templates/register.html';
}
elseif ( $_POST['register'] )
{
$first_name = addslashes( $_POST['first_name'] );
and can't think of a better way.
Anyone?!?
