View Single Post
Old 10-02-2012, 11:22 AM   PM User | #1
emad kutkut
New to the CF scene

 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
emad kutkut is an unknown quantity at this point
how do add everyone only voted

PHP Code:
<?php 
session_start
(); 
require_once 
'classes/Membership.php'
$membership = new Membership(); 

// If the user clicks the "Log Out" link on the index page. 
if(isset($_GET['status']) && $_GET['status'] == 'loggedout') { 
    
$membership->log_User_Out(); 


// Did the user enter a password/username and click submit? 
if($_POST && !empty($_POST['username']) && !empty($_POST['pwd'])) { 
    
$response $membership->validate_User($_POST['username'], $_POST['pwd']); 

                                                         

?> 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>LOGIN to access HCEA voting</title> 
<link rel="stylesheet" type="text/css" href="css/default.css" /> 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script> 
<script type="text/javascript" src="js/main.js"></script> 
</head> 

<body> 
<div id="login"> 
    <form method="post" action=""> 
        <h2>Login <small>enter your credentials</small></h2> 
        <p> 
            <label for="name">Username: </label> 
            <input type="text" name="username" /> 
        </p> 
         
        <p> 
            <label for="pwd">Password: </label> 
            <input type="password" name="pwd" /> 
        </p> 
         
        <p> 
            <input type="submit" id="submit" value="Login" name="submit" /> 
        </p> 
    </form> 
    <?php if(isset($response)) echo "<h4 class='alert'>" $response "</h4>"?> 
</div><!--end login--> 
</body> 
</html>

Read this topic and I did not find an example of the process of building the table I do not know where it is placed

http://www.codingforums.com/showthread.php?t=198816
Please help from experts

Last edited by emad kutkut; 10-02-2012 at 02:28 PM..
emad kutkut is offline   Reply With Quote