Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

    using mysql and php to track user ids for who voted
    Please help from experts
    Last edited by emad kutkut; 10-02-2012 at 02:28 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •