JTable::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . $option . DS . 'tables'); switch ($task) { case 'listnames': listMemberNames($option); break; case 'memberoptions': listMemberOptions($option); break; case 'login': loginMember($option); break; case 'logout': logoutMember($option); break; case 'newmember': newMember($option); break; case 'newmemberpurchase': newMemberPurchase($option); break; case 'oldmemberpurchase': oldMemberPurchase($option); break; case 'savenewmember': saveNewMember($option); break; case 'savenewmemberpurchase': saveNewMemberpurchase($option); break; case 'saveoldmemberpurchase': saveOldMemberpurchase($option);
<!doctype html> <html lang="en"> <head><meta charset="utf-8"> <title>Casa Ghana</title> <link href="css/style.css" rel="stylesheet"> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- including font awesome into the project --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> <link rel="stylesheet" href="css/font-awesome.min.css"> </head> <body id="wrapper" > <?php include 'functions.php'; include 'dbconnect.php'; newMember(); ?> <div class="container"> <div class="login-form property-single col-sm-12 col-md-4 col-md-offset-4"> <div class="action-icon"><i class="fa fa-user-plus fa-lg"></i></div> <div class=""> <h3 class="text-center">Glad you want to join the community</h3> </div> <form action="<?php $_SERVER['PHP_SELF']; ?> " method="POST" > <div class="form-group col-md-6"> <input type="text" class="form-control" autofocus name="fname" autocomplete="off" placeholder="First Name" required> </div>