Jump to content

CoconutJJ

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

1 Neutral

About CoconutJJ

  • Rank
    Newbie
  1. Here's a fully working login system. Where users can sign up and access a members page. Features Include: - Login & Sign Up Page - Members Page Only **NOTE: I have not added any security code, you'll need to add this by yourself...** Step 1: Creating a Login and Sign Up Form. This will be a simple login page where users can enter their username and password, then click the submit button to access the members page. "login.php" will be the script that will be executed when they login. This processes the user information entered to check the validity through a database of users
  2. I have a problem with the jQuery AJAX Append function. Everytime I append a comment to the <span>, not only does it append that single one, but also replicates every other comment dynamically generated by the PHP. So I end up with multiple repeated comments. However, the repeated comments aren't stored in the database, so whenever I refresh the page, it goes away. How can I prevent this without refreshing the page everytime? PHP: To display all comments <span id="commentHint"></span><?phpecho "<b>$comment_user said:</b><small>$comment_time</small&
  3. UPDATE FROM users SET column_name = 'DATA', column_name = 'DATA', column_name = 'DATA', WHERE column_name='DATA'
  4. CoconutJJ

    hash in PHP

    Hi RaRa3, I'm not quite sure about the question you're asking but here is how you would hash a password and insert it into a database Your HTML <form> element should be a POST request. (Using GET requests for passwords is a bad idea) It should look like this <form action="" method="post">...</form> <?php //CORRECTED VERSION//GET ALL THE VALUES AND STORE THEM INTO VARIABLES$firstname = $_POST["firstName"];$lastname = $_POST["lastName"];$user = $_POST["username"]$pass = $_POST["pass"]; //We first store the value of the password to $pass$email = $_POST["email"];$address =
×
×
  • Create New...