Member Avatar

I am trying to get the usernames of users to appear in the url so that I can use $_GET['username'] to grab the username to create a link to the user's profile which can be viewed by any logged in user. So far I can only the logged in user's username to display in url. So I did a loop/queried the database and selected usernames of all users and created a link of the usernames to appear in the url. So any logged in user can go to the users.php and click on any username to see the detailed information …

Member Avatar
+0 forum 3
Member Avatar

I have a long/register system working . Each user see their own profile details when they login. Now I want to users to see other users profile by clicking on a link to their profile. How do I do this? I need advice

+0 forum 0
Member Avatar

Just for all those wondering what's going on, I don't know but I did jump on another PC to check and it was logged in. So I logged out and could not log back in. The first hint there was a problem was when I went to login on my Android phone. At first I thought it was just the phone but nope. For now, if you are logged it, you can post and more. But **DON'T LOG OUT.**

Member Avatar
+2 forum 12
Member Avatar

i need to enhance the existing code to add on the user locked if the user failed 3 times... even after they enter the username & password, the system should track whether the user have been tried to login before... once it have been try for three times, the user should be locked by system , administrator should unlock the user account.. please help me... thanks...

Member Avatar
+0 forum 12
Member Avatar

Hi, I'm having my login page as: [code=jsp]<html><head><body> <form action="validateuser.jsp" method="POST"> username - <input type="text" name="userName"> password - <input type="password" name="passWord"> <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form></body></html>[/code] And Validator Page as : [code=jsp]<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.util.*" %> <jsp:useBean id="idHandler" class="com.suntec.tbms3.ui.Login" scope="request"> <jsp:setProperty name="idHandler" property="*"/> </jsp:useBean> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><body> <% String userName = request.getParameter("userName"); String passWord = request.getParameter("passWord"); if (idHandler.authenticate(userName, passWord)) { response.sendRedirect("welcome.jsp"); } else { response.sendRedirect("retry.jsp"); } %> </body></head> </html>[/code] where I'm validating the username and pass word from my DB. Now I want to display the user login name …

Member Avatar
+0 forum 6
Member Avatar

The Forgot Password process sends an email with a link to click. The email purports that the link resets the password to one specified in the email. The link logs me in, and takes me to the User Settings page. I can enter a new password no problem. I put the password from the email in the current password box. Something appears to be broken here. -Mike

Member Avatar
+0 forum 6
Member Avatar

Hi everyone! I'm making an application which requires users with different permissions/previleges to login and use the application.For example, if the user is "admin", all menu items in the menu bar are shown and enabled. If the user is say "user_group1", some of the menu items are to be hidden. The same for "user_group2", "user_group3", "user_group4" and so on. I could put a code for each specific user in each form but that's a great deal since users and their user groups may be added after application deployment. So it has to be something flexible. I want the user "Administrator" …

Member Avatar
+0 forum 24
Member Avatar

As I understand it, there were problems on Sunday (Feb 24) which caused problems logging in. Daniweb would not accept my password (or so it said). Normally when I go to login I get presented with the login page with my userID (reverend Jim) and password already filled in. Now I was getting the login page with my email address instead of my userID. Manually entering my userID and password resulted in an indication that my password was incorrect. I clicked on the "Reset Password" which is supposed to send a reset email to a given address (which I entered). …

Member Avatar
+0 forum 22
Member Avatar

Hello, I wrote some codes for student login. the codes checks for the "username", "password" as well as their type of "status", from the database. once this input are met, the student logs in successful, otherwise a message pops up. The problem i encountered is this, i have 11 student records in my database and only the first 6 students can login successfully. the remaining 5 students cannot login. Despite entering the correct username, password and status for the last 5 students in the database, the message "Invalid username and password" comes up. I don't know where my code went …

Member Avatar
+0 forum 6
Member Avatar

Hello, just created a code for login using encrypted password method when user is registering at that time i made a passsword encryption script. But the main problem is that when it comes to verify login how do i veryfy the password as that password is saved as encrypted password how do i very it Thank yOU function hashSSHA($password) { $salt = sha1(rand()); $salt = substr($salt, 0, 10); $encrypted = base64_encode(sha1($password . $salt, true) . $salt); $hash = array("salt" => $salt, "encrypted" => $encrypted); return $hash; } function adduser($connect) { $fname = $_POST['FirstName']; $lname = $_POST['LastName']; $uname = $_POST['username']; $pass …

Member Avatar
+0 forum 7
Member Avatar

I am having an issue with my computer starting up. It will power up, I hear the hard drives spinning, the fans all come on including the CPU fan. But I get no visual, no beeps. I tried to wait out around 5 min or so to see if it is going through it's startup process which would cause my mouse and keyboard to light up once in Windows at the login screen, but it never did that. I tried to test a different monitor, a different graphics card and all variations between. I don't see the power signal inside …

Member Avatar
+1 forum 37
Member Avatar

I Have three form Home.aspx and Login.aspx Details.aspx on home.aspx i have two iframe in iframe one i open login.aspx in Login.aspx i have a button btnChangePage now i want to assign src property of second iframe dynamically ( src="details.aspx" ) on btnChangePage_Click Please if u have any suggetions please help me Thanks a lot in advance

Member Avatar
+0 forum 8
Member Avatar

i have a two menu bar option which are home and my account after login my user and pswd its show home page but when i change home to my account page its show message below and logout Notice: Undefined index: user in folder\myaccount.php Notice: Undefined index: pswd in folder\myaccount.php you are not logged in these both fields are my login page variables user and pswd

Member Avatar
+0 forum 4
Member Avatar

I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks..

Member Avatar
+0 forum 22
Member Avatar

Hello, Cek this site: www.innovation.web.id Facebook: https://www.facebook.com/pages/Innovation/398014920271702 I wonder why I cannot login to the fans page right away? Like I have to login to my facebook account first before I can login to the fans page. Any clue?

Member Avatar
+0 forum 2
Member Avatar

What I'm trying to do is have a login type windows form to take a user name and password then compare these with data in the db then open an admin type form. I've been trying to get this to work for a few days now with no luck, about 90% of the code below is a peice together from various forums trying to get it to work. i no longer get an error 26 connection cant be made or what may have you, but now i get "Login failed for user ''.", not quite should what this means or …

Member Avatar
+0 forum 13
Member Avatar

Hi, I once tried dazah. I could login into my old account on daniweb. But once I tried after a while I couldn't, even when I used forgot password. I was expecting that i would be given a link to change my password which didn't happen. I had to register with a new account to gain access. Truth be told, I don't think am enjoying this **dazah** whole idea. Please I need help as to our to regain access, using my old login. Thanks.

Member Avatar
+0 forum 9
Member Avatar

How to close main form i. e login form after login and it should not close application

Member Avatar
+0 forum 7
Member Avatar

admin/views/login.php <?php $this->load->library('form_validation'); ?> <?php echo validation_errors(); ?> <?php echo form_open('cpages/ceklogin'); ?> <div class="login-card"> <center><?php //echo $warning; ?> <?php echo $this->session->flashdata('warning'); ?> </center> <h2>Gionda CMS Login</h2><br> <form> <div class="login"><input type="text" name="username" placeholder="Username"></div> <div class="login"><input type="password" name="password" placeholder="Password"></div> <br> <input type="submit" name="login" class="login login-submit" value="login"> </form> <div class="login-help"> <a href="#">Register</a> • <a href="#">Forgot Password</a> </div> </div> controllers/Cpages.php public function ceklogin() { $username = $this->input->post('username', TRUE); $password = $this->input->post('password', TRUE); $this->db->where('username', $username); $this->db->where('password', $password); $query=$this->db->get('login'); if ($query->num_rows() >= 1) { // echo 'LOGIN BERHASIL !'; $this->load->model('Mpages'); $data['login']=$this->db->get('login'); $data['login']=$this->Mpages->login(); $this->load->view('index', $data); } else { // echo 'LOGIN GAGAL !'; $this->session->set_flashdata('warning', 'Your username and …

Member Avatar
+0 forum 6
Member Avatar

Im creating a social network site and i was able to create a user folder each time a new user signs up but my problem is copying a default image from a folder to that user folder how can i do that? I've searched the web on solutions like using Copy function in php but itsn't working You can check my code and i would be glad if anyone could help: <?php $link= mysqli_connect("localhost","root","","new1"); if($link === false) { die("ERROR: Could not connect. " . mysqli_connect_error()); } $firstname = $_POST["firstname"]; $lastname = $_POST["lastname"]; $username= $_POST["username"]; $email = $_POST["Email"]; $password= $_POST["Password"]; $country= …

Member Avatar
+0 forum 2
Member Avatar

Has anyone had any issues logging into DaniWeb today?

Member Avatar
+0 forum 7
Member Avatar

I am hosting web site using a inex.php file. I have setup a login for four different users which currently directs them to same index.php file. I would like direct each individual to a specifice index.php file based on the user. I am very new to php and coding in general. Could anyone hlep me with this? Thank you in advance Here is my code for the index.php <?php //====================================================================== // Positions pic //====================================================================== ?> <style type="text/css"> /*Initializing CSS code*/ img { float: right; } </style> <?php //====================================================================== // Takes you to login //====================================================================== ?> <?php include("/home/pi/html/password_protect.php"); ?> <html> <body> …

Member Avatar
+0 forum 5
Member Avatar

Hello,im working on a music store in magento, i have two users artist and customer ,i want to let artists choose their role and add their songs, i installed multi seller extension but i want also that they choose their role on register form,i tried a lot of extensions what do u suggest me ,please help me ,thank u

Member Avatar
+0 forum 1
Member Avatar

Hi, My Crystal Report is using VB.NET and Sql server 2005. The report can be displayed but everytime it will prompt me to key in the Username n Password.. is there anyway to automatically pass the login information to reports? thanks =)

Member Avatar
+0 forum 12
Member Avatar

I'm really sorry everyone ... Due to an SSL issue, no one was able to log into DaniWeb over the past day. I wasn't aware of the issue as I was already logged in. Soooo sorry!!

Member Avatar
+0 forum 15
Member Avatar

THis is the reply i that get after entering the web address www.theagenda.com.ng. Index of / cgi-bin/ Please what could be the problem? And am still in my designing stage in wordpress....

Member Avatar
+0 forum 2
Member Avatar

The Code Given is for only beginners in HTML 1.The code implements a simple login form 2.It checks whether the password and usernames are matching or not 3.While you are using replace the predefined username and password that I'v given that is replace "myuserid" and "mypswrd" with your own userid and password. 4.just copy the file and paste it in the notepad. 5.and save it with an extension of .html or .htm 6.select 'All Files' from the popupmenu shown at the bottom of notepad before saving. 7.Now you will get a document that has the symbol of internet explorer. 8.just …

Member Avatar
-2 forum 34
Member Avatar

I tried to go to a thread in Chrome and the connection timed out. I loaded Firefox and browsed to Daniweb and tried to log in. I was sent to Dazah (as expected) where I was told my password was no longer valid (I use a password manager so a typo was out of the question). I did a password reset and logged in to Dazah then browsed to Daniweb where I was told I was not logged in. I clicked log in and the page refreshed with me shown as logged in. This whole process is not user friendly.

Member Avatar
+0 forum 24
Member Avatar

It gives me always `Invalid Username or Password` what is the problem with this code ? <form action="admin_login.php" method="POST"> <div class="form-group" style="width: 280px;"> <label for="usr">Username</label> <input type="text" class="form-control" name="userbox" id="user"> <br> <label for="pass">Password</label> <input type="password" class="form-control" name="passbox" id="pass"> <br> <button type="submit" name="login" class="btn btn-success">Log In</button> </div> <?php if(isset($_POST["login"])) { $user = $_POST["userbox"]; $pass = password_encrypt($_POST["passbox"]); $sql = "SELECT `ID` FROM `admins` WHERE `username`='".$user."' AND `password`='".$pass."'"; $result = $conn->query($sql); if(!$result) { echo "There is problem with connection try again later."; trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); } else { if($result->num_rows > 0) { $row = …

Member Avatar
+0 forum 10
Member Avatar

my wordpress page is saying page not found during wordpress design what could be the problem

Member Avatar
+0 forum 2

The End.