13 Topics

Member Avatar for
Member Avatar for BenzZz

Error messages should be displayed within the html if certain fields on my member register form are left empty, if they are invalid types or if the username entered already exists. I've tried adding a record with an already existing username and it does direct to the member registration failed …

Member Avatar for BenzZz
0
266
Member Avatar for BenzZz

I create the session variable $_SESSION['SESS_MEM_ID'] within my validateLogin.php file shown here: [CODE] <?php include'db_config.inc'; require_once('InitDB.php'); $error_msg = ''; $error_flag = false; function clean($str) { $str = @trim($str); if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return mysql_real_escape_string($str); } try { $dbh = new PDO("mysql:host=127.0.0.1;dbname=$db", $user, $password); } catch (PDOException $e) { …

Member Avatar for BenzZz
0
1K
Member Avatar for megachip04

I have a form in account.php that is prefilled with the user's current info but can be changed and then when you submit, it updates the database. However, when returned to the page after the update, the prefilled text is not updated. It only updates if you re-log in. At …

Member Avatar for ddymacek
0
8K
Member Avatar for atrueresistance

Hello all, I am trying to transfer some variables to another page for editing. I am having troubles with the checkboxes. [CODE]GridView1.Rows(e.NewEditIndex).Cells(12).Text & "~\/~" & _[/CODE] is a checkbox and when passed and split it comes up as a empty string. I know there has to be a way to …

0
106
Member Avatar for Giggaman

I have the login page created that captures the userid & also an edit page that shows all info of a certain table in database. Trying to figure out when a user views the edit page to have it only show the info the user created. Making it only possible …

Member Avatar for Giggaman
0
286
Member Avatar for jrotunda85

Hey everyone, I'm relatively new to PHP coding and I have a question I've been having trouble finding the answer to - it may be I'm not sure [I]exactly[/I] what I'm needing or what it's called. I am trying to create a very rudimentary login in system where users will …

Member Avatar for jrotunda85
0
205
Member Avatar for learning_php

Hi While learning how to create and manage a session, I got through session time out technique, I got throw 2 ways : 1. Setting up garpage collection directive in php.ini file and 2. Create a session variable named, say, EXPIRE that holds the value [code]$_SESSION['EXPIRES']=time()+360;[/code] at the beginning of …

Member Avatar for learning_php
0
189
Member Avatar for Sinha's

Hello Frnds, I have an application developed in ASP.Net(C#) and MS SQL, its working fine and fulfilling the requirements. Now the problem is I have a [I]MS Access Database[/I] from where I have to read some data and feed it into ASP.Net form and then save it to [I]MS SQL …

Member Avatar for crishjeny
0
340
Member Avatar for ninja_girl

I have searched the forum and Google but there was nothing that would give me a clue what's wrong with my code. I'm just starting PHP and I'm trying a few things. :) I have a page with login. Logging in works wonderfully, storing sessions with username does too. However, …

Member Avatar for ninja_girl
0
297
Member Avatar for digital-ether

The above classes provide an interface for reading the PHP session data. PHP alone only gives you access to the current users session. This class allows you to read all session files, and thus allow you to read session data across different users. This may be useful if you want …

Member Avatar for digital-ether
2
1K
Member Avatar for dschuett

Hi, I have made a log in script that checks the database for username and password. I have everything working for the users (they must be logged in to access member.php). Now I have admin.php redirecting to a different page, but how do i keep users OUT of that page? …

Member Avatar for richieking
0
7K
Member Avatar for finnj6

Hi I'm trying to develop a site that users can log into. It's all standard enough the details are being kept on a mysql database. I can add the details to the db but my code for logging in isn't working. here is my login script [CODE]function user_login($username, $password) { …

Member Avatar for hielo
0
144
Member Avatar for abhipro

Hi, Is there any way of storing some variables, say username for a particular session in ASP.NET. E.g, If we let a user login in a page, then I want him to stay logged in for all the pages he traverses on the server. Currently, I am trying Server.Transfer and …

Member Avatar for padtes
0
137

The End.