Creating A User Login
I want to create a link on a site that prompts a visitor with a login prompt. Once they enter in the code (could be one line or could be username and password) they will be taken to a different webpage within the site. Can this be done? ...and if so, how?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Creating A Login And Update Page
I've recently had a request from a couple of clients for a login and update page. I know this can be done using php. They want a login page to access a secure part of the website and then alter a couple of pages to update. I've tried a couple of different things such as creating an ftp client, which I'm not sure is the right way to go about it, plus it wouldn't work after so far following an online tutorial, I could only attain the server information in a list, couldn't make it so it was editable, I've also tried creating a login page using a tutorial, but I don't see how that's going to help me unless I find a way of being able to edit (add to a table of contents) once i'm logged in.
User Login
I currently have a database that holds user registrations - there is a spot for them to register, login, etc. Now... I am installing vBulletin - is there anyway to take away the user reg. on vBulletin and have the other one carry over to it? So once they login ONCE on the site, it counts them as logged in on vBulletin?
User Login
Say I have a page named secret.php and I want only logged in users to access it, how can I stop others from briefly viewing it (my script refreshes the page when it sees the user isn't logged in, so they see it for a split second).
Creating A User-Comments Box
I'm having a bit of trouble creating a user-comments box. Basically, I'm working on a website like YouTube, which offers videos. Next to the videos, I'd like a comments table/box where users can post their comments about the video. There should only be 5 comments, so as not to flood the page. I would like the comments to be picked randomly from a database or sorted by newest first. Up to now I've got: User input through a form -> Data is entered into database (MySQL) However, as I mentioned before, I'm unsure about how this data would be entered into the comments table (and sorted).
Prevent Two User Login ?
I written a php application which is is password protected application. I want to prevent both users using the same user id and password login at the same. While both of them login at the same time, one of them must b kick out from the application.
A Secure User Login Example
Do you have a place where i can find an example for a PHP system that uses secure user login (e.g. web based mail application etc)
User Login Redirection
If a user is not logged in on my site and goes to a page which they need to be, they are redirected to the login page. When they login, they are redirected to the page they were pm. The preoblem is, if there are 2 $_GET values, it only reads the first. Example: http://www.mydomain.com/page.php?get=value&get2=value2 http://www.mydomain.com/login.php?redirect=http://www.mydomain.com/page.php?get=value $_GET['get2'] is not in the login.php url. I am using $_SERVER['REQUEST_URI']
User Login Page
i just created a user login page which works. However, I don't know how to get them to a new password requiring page after they press the submit button. How do I go about getting them there?
Different Page For Different User After Login
i want to make a login page and every user will use the same page for login. when they will give user id and password and the system will automatically show different page for different user. Sample: Admin will automatically redirect to admin.php page User will automatically redirect to user.php page. Any idea and sample code for it ??
Creating Active Directory User
does anyone already tried to create a user into active directory through php_ldap ? i tried something like this but still don't work :-/ $adduserAD["cn"][0] = "phpldapuser"; $adduserAD["samaccountname"][0] = "guguseli"; $adduserAD["objectclass"][0] = "top"; $adduserAD["objectclass"][1] = "person"; $adduserAD["objectclass"][2] = "organizationalPerson"; $adduserAD["givenname"][0] = "thomas"; $adduserAD["name"][0] = "tester"; $adduserAD["sn"][0] = "btester"; $adduserAD["description"][0] = "TEST-Account ldap"; $adduserAD["title"][0] = "Programm Manager"; ldap_add($ad, "ou=test, dc=my,dc=domain", $adduserAD) or die("error!");
How To Reference User Login Using .htaccess
First off, I'm know very little about server side stuff. I've managed to install a php/mysql script (called ilogin) on my webhost's server which creates a username and password for people registering on the site. Using this username and password, the visitor can access a protected directory. It's done using .htaccess and .htpasswd. When the user tries to enter this area, internet explorer pops up a username and password window (i.e. you don't login using a form) Now I've also installed a seperate PHP script that allows website visitors to upload files. Now I plan to place this php file with the uplaod script in the protected area, so you can only access it if you've logged in (previous paragraph). I've done the above. Problem is, I dunno which of the registered users have uploaded the file. I don't need anything too complicated. I need to know how to reference the username, so when the user completes the uplaod button on the upload page, an email will be sent to me containing the username (maybe the filename as well) So basically, if I had a php page in the protected area, is there an easy way to get and store the username in a variable so that I can send that variable to an email address (like a standard form to email script).
Problems With Sessions - User Login
I have problems with sessions. It looks like the session variable "MM_UserID" is not passing from one page to another. I created a login page (login.php) and built the form and added dreamweaver mx's login behavior to it.I then created a user info page (login_success.php)which users reach right after logging in that displays several bits of information from their entry in the database table. When I login, the login is successful but no dynamic data (the user's info) is displayed on the user info page. The codes for both the login page and the userinfo page are below:
PHP Login - Redirects Depending On User
I am trying set up user authentication using PHP. My biggest goal is this: When a user enters in thier user name and pass they will be redirected to a specific page. The redirect page willl be different for every user. How do i do this redirect thing?
Count User Login Time
I want pick time after 2 min when an user login the web site also this information will be store in database automatically. How it is possible in php without help of javaScript.
Restricting User Login Attempts
I'm developing a database driven website on Unix using PHP and MYSQL. Users are required to register and are then allocated a username and password. In order to purchase items from the site, users are required to login using username and password. I want each user to be able to attempt login no more than 3 times - on the third attempt, if the username is wrong, the account is locked out. Any ideas on the best way to do this - i.e. keep track of the number of attempts? I thought of adding a LOGIN_ATTEMPT_NO to the USER table and incrementing it each time a login is attempted. But no sure is this is the best way. Was also thinking about using php session vars but presume these get reset at end of session, so if user restarts computer or exits and reenters site, vars will be reset. I want them to remain locked out until they contact system admin to reset the account.
Basic User Login For Survey
I'm using Joomla which is fantastic, but my problem is I wish to write a basic custom survey. I need to record the user name, and user answers (no CHAR types only answers from TINYINT 1 to 10 for graph purposes). I have the basic php set up to record this ( not very well but sufficient) What I'd like help/advise with is setting it up so the user can come back at a later date to finish off the survey, it may become quite a lengthy questionnaire. Code:
Simple User Login Script...
I want a simple user login page/script that does not run over a DB. The main reason for this is to ease deployment and because security is not a huge deal for the data being protected. Here's what I'm trying now. It isn't working. Code:
Secure Login And User Registration
I have 2 problems. 1. how am I going to get the unencrypted password when a user is registering to store in the db. 2. how am I going to get the unencrypted password to use with crypt so i can compare it with the crypted password in the database..like this crypt($pass_entered_from_login,$crypted_pass)) == $crypted_pass
Redirect The User To His Own Page Once It Login
i have created a login page .. and i need to redirect the user to his own page once it login.. in the other words.. i need to redirect the user to his own database.. but the login details is stored in another database... just like once you login into your own account and it is displaying only your details.. hmmm how can i do that with php ... what method is easier and suitable ?? if can juz kindly show me how the code look like too..
Creating A User Generated Content Website
I'm planning to create a community site (in PHP and MySQL) where people can post some sort of helpful information. I want to include features that would allow people to rate this information and post comments about it. I would also like to make this information searchable, so I want to include tags. To help you understand it better, the website is sort of like digg.com or engadget.com or any other website that have content and comments on it. Sort of like a blog site. I already finished creating the login system. Now I need to work on the content posting system. I already thought about the SQL table to store this content. Here's what I have so far: ContentID, User, Title, ContentText, DatePosted, NumOfComments, Rating, Tags For the comments, I would assume the SQL table would look like this: ContentID, User, CommentNumber, CommentText Now, am I on the right track here? This is my first time creating something like this. Are there free scripts out there that does the same thing?
Capturing User Login Information Of Windows
I want develop the intranet site with seamless authentication. Is there any way to capture only the user name who has logged in the windows machine. Iam using PHP 5.0 MySQL and IIS Server. I have tried with $_SERVER['LOGON_USER'] but its returning nothing.
PHP Tutorial For Building User-login Sites
I'm looking for a PHP tutorial that specializes in how to build sites that are based around user logins. i.e. the user logs in on the front page, and are taken to a main login page where fields on the page are populated with values from some server-side database. Ideally, there would be a server-side "user" database table, with fields such as "age", so that you could insert a short tag in the PHP source like: Your age is: <?php [something goes here] ?> and the "age" value from the user table would be interpolated, such that the "[something goes here]" in the example above would be something short like "user.age", and not something clunky like an entire SQL query statement. (Preferably the database lookup of the user's record would be done just once per page load, or even once per user login, so that it wouldn't require a separate database query to populate every value on the page.) Also, ideally, a way to do queries against other tables in the server-side database, so you could have something in the page source like: Your ordered items are: <?php [whatever goes here] ?> which would query against another MySQL table like "orders" for orders whose user_id field matched the "ID" field of the user in your "user" table, and display the results in a table format according to some specified template. Again, it would be elegant if the stuff in "[whatever goes here]" could be brief (the bare minimum you'd need to specify would be the "orders" table and the name of the template that controls the formatting of the results), instead of having to be an entire SQL query. Can PHP do this? The first few sites that I found when searching for "PHP tutorial": http://www.php.net/tut.php http://hotwired.lycos.com/webmonkey.../tutorial4.html http://www.gimpster.com/wiki/PhpTutorial didn't talk much about building a user-login site like the one I'm describing. Is there a tutorial which specializes in how to build that kind of site with PHP?
Login Scripts Manage 4 Different Types Of User
I am trying to write a login script which can manage 4 different types of user so for example if one of the admin users logs in they will be taken to the admin section or another user will be taken to their section with their proper privileges. I have never done anything like this before and was just wondering what would be the best way to do this, or are there any scripts that can help with this?
User Login - Direct To Specific Page
If im looking to make a login system, that when someone login in with a specific username and password, it takes them to a specific page, ex. login: world password: world page they must get sent to once logged in: world.php login: hello password: hello page they must get sent to once logged in: hello.php Can someone give me a start to it here please? been looking around but cant find a good explanation of it .
Creating Dynamic Hyperlinks With User Id's In Php Query
Im dabbling with PHP and trying to write a new search.php file to scan for specic users in my dating website and then display the users along with individual links to their profile. $profile = $row["id"]; -- this field takes profile ID from mysql database The profile field pulls in an ID field from a mysql database for each record. I need to integrate this fields value into the hyperlink when the results are returned so it has a list of all users each with an individual hyperlink to their profile. Then users can click and access the profile of a specific user. Code:
Dynamically Creating URLS Based On User Input !
I am looking to create pages on the fly or dynamically based on user input. For example if i have www.example.com and they visit this and enter 'bob' in a textfield and press submit they create www.example.com/bob.html . How would I go about this ? I am guessing I need to create a folder when submit is pressed in my website directory ?
Ideas To Create User Personalize Page Without Login.
Hi,I am new with PHP, I am a new junior internet programmer. My boss asked me to do a personalize page for his search engine. Do any one willing to give some ideas of how to create a personalize page without login by user(only read the user cookies and mysql)
User Login And Preventing Access To Non-html Files
I built a user login for my site with php and it works great. The problem is that I want to put some .doc and .pdf files up on the web that only a logged in user can access and I don't want the user to have to enter another username/password I want to use the current system I've got now (which is just checking cookies and a database to see if you're logged in at the beginning of restricted pages). This doesn't have to be done with php but somehow I want to base whether or not you can view the files based on whether you're already logged in.
Prevent Multiple Login For Single User Account?
how to prevent multiple login for single user account? eg user A login AccountA in german while user B also login AccountA in netherland(at the same time) that website.. how to prevent this? set login status in mysql or?
PHP Sessions - User Login Webpage - Preventing Autologout Due To Inactivity
I have a website where users can log into. This users sessions as I believe most people use when implementing a login section of a website (each php page first checks a valid parameter has been set to authorise that the user has logged in and if it is not found it redirects the user to the login page). I have my code and it works fine, however on the live server, after a period of inactivity the user will be logged out automatically. However on my test server this is not the case and the user remains logged no matter how long they have no activity for. The exactly the same code is in place on both servers, just the servers are from different providers so I assume set up differently. What could be set up differently on the servers to be causing this difference in behaviour and what can I do to override it? In an ideal world I would be able to control the amount of inactive time before I user is logged out automatically.
Creating Link To File Or Temp File For User Download
I am designing a document management system (DMS). The files are stored in a directory on the webserver. The filenames for the documents are stored in a MySQL database. The DMS will track revisions from the initial version through the updates. We must have strict permissions set so only authorized personnel can access some documents. All of the documents when uploaded are given totally random names such as "114723fb5422c6bd5ed18f6.doc". Is there a way, without the webserver creating a new file name "document_specs_ver2.doc" to have the file download named "document_specs_ver2.doc". If I must physically create a new file, how do I know when the webserver would be allowed to delete it? Notes: The files will be in several different file formats, not just "doc".
Using Setcookies In My "new User Login" Program
While using setcookies in my "new user login" program, i'm facing a problem. My cookie is storing the login name in the same page but as i go to another page and insert information about that user, who has just logged in, then it doesn't take the login in the sql query.
Creating User Sessions W/out Using Sessions
I'm working on a user management system where I can use the benefits of PHP sessions w/out messing with them. Basically, my idea is to have an entry created into a "sessions table" when the user logs in. The table contains such info as the user's id number and the date/time they logged in. When the user logs out, the entry is deleted. In each page/script, it checks to see if the user is logged in by checking the sessions table for an entry w/their IP address and the date, to make sure it is fairly current (unless anyone can think of a better way to check). Now my delema....obviously, I don't want people that don't properly log out to have a session that could last weeks (depending on when they visit again). I am thinking a script that cleans up entries that are old would do the trick, but obviously I want this script to run say, at least once an hour. Obviously, I am not going to be able to sit at my computer and run this script every hour of every day. I was thinking of using the script and doing a cron job, but I think my host only allows one cron job per day...and only at night. Any thoughts??
Session Problem - Login Screen Continually Reloads After Pressing The Login Button
I am trying to get sessions to work on a log in screen to give certain users access to certain pages/directories. The problem is that when the login button is pushed (or the enter key pressed) the login screen redraws, never loading the next page. I don't get any error messages. I am using FreeBSD-5.1/Apache-2.0.46/MySQL-4.1.0.1/PHP-4.4.3.4 I have pasted the code below:
Login Lgout And Login Without Closing Session Gives Redirection Error
I am stepping through a text book that sets up different websites. The one I am testing is user registration. I set up the scripts and this is what I observe: Login (verifying against a mysql db) - no problem. Logout - no problem. Close the browser and try again - no problem. Login > Logout > Login WITHOUT closing browser I get: An error occurred while loading http://login.php when it should redirect me to http://localhost/index.php. I read somewhere on the news group that the header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname ($_SERVER['PHP_SELF']) . "/index.php") (in my example code) is called once and so the error? The logout.php destroys the $_SESSION variables, session itself and any cookies so I thought it would be "like new" the second time around? It appears to be linked to sessions but don't know enough to know how to correct.
Login Script Forcing Me To Login Twice?
I have built a login script and for some strange reason its forcing me to login twice. Not saying the user/pass is wrong first time, it moves the headers fine, it just show the old page with the login any ideas? Code:
Login Page Not Redirecting After Login
I've used this same snippet of code in other login forms without a problem (with some slight modifications from script to script) but this one seems to baffle me. Basically it takes the login and validates the entries (validation works, error messages display if left blank), then checks the database for a match. If there's a match then it is supposed to forward the person onto the proper page using the 'header' function. Problem is it's not. Basically it's reverting back to the 'index.php' page (login page) and the display is completely blank. Here's the code for index.php: Code:
PHPmyadmin Access Denied For User 'user'@'localhost'
WinMe machine as server, with Apache 2 installed and working PHP4 installed and working ( had PHP 5.05 installed and working, but i couldnt get the mysql extensions to load - phpinfo() didnt list mysql :(, so i installed PHP4, which now lists mysql when i run phpinfo). MYSQL 4.1 installed and working. I dont know the console commands too well, but i know its working ok, cos I have used a few simple DOS prompt commands to check its alive and I can connect to the database using MyODBC frontend/driver 3.51 and also using Navicat 2004. When i try to connect to the database via PHPmyadmin from another network PC I have an error: #1045 - Access denied for user 'user'@'localhost' (using password: YES) I have played around alot with different settings in the config.inc.php file.... nothing seems to work. This almost appears to be a simple login problem ( probably is too), but I can access the database locally from the Winme machine with the username and password that wont work over the network! I have tried not using 'localhost' as the host name but the IP address of the Winme PC but I get this error: #1130 - Host 'MYSERVERNAME' is not allowed to connect to this MySQL server
Notice: Use Of Undefined Constant User - Assumed 'user'
I have a script for a shopsystem on a Linux. There it works fine. But when I try to run it on my Windows machine, PHP says things like Notice: Use of undefined constant dbname - assumed 'dbname' in c:apachehtdocsaposhop estshopclassesxxx.clas s.php on line 77 On Windows I run PHP 4.3.2 On Linux runs PHP 4.3.1
Authenticating User Common User Names
I want to create a password protected page with PHP and Mysql. I have 2 groups User and Admin. The respective groups have a common user/password. The user/password are stored in a database. I want to authenticate the user through a login form and not through a pop-up ($PHP_AUTH_USER) way. What I want is, if a user logs in and he moves from one page to another, he should not be asked for validity again. Is this possible only with scripting (without session and $PHP_AUTH...). If yes - how do I keep track of an authorised user and unauthorised user, so that he should not be validated again. Does setting the user variable to global in all the pages do the trick.?
User Authentication And PHP Saving As Specific User.
the users of my server had to upload their pages by sftp and only the user who uploaded a page was able to edit itafterwards. I've been asked to make a secure way for users to log on through the web and edit their pages online. However, although using .htaccess to authenticate users, the script saves as user 'nobody' and is not able to edit pages previously uploaded (and saved as user 'john_doe'). What I am trying to do is make the script save using the same username as the user used to log on.
Fill Fields When User Selects User From DB
I have a field with a selectbox which contains a list of client names and several other fields which display information from the DB. I need to be able to make the fields change to the appropriate information when a user is selected from the select box. Can anybody please give me an example of a bit of code that will do this?
Php Login And MySQL Login
can anyone tell me the advantages of a login created with mySQL over just using php and writing to text files(if this is posible)?is mySQL safer and more secure in any way or just easier?
Creating XML In Php
I have a website that is hosted on another machine not under my control. i want to be able to use a file to share info between pages. one page inserts into the file and the other reads from the file. i wanted to use XML because there would be a lot of fields and some would variable length or values. i'm looking into the XML functions with PHP however they all seem to read an XML document. is it possible to have one write an XML document?
Creating Dir
I wanted that when users register on my site, automatically a directory would be created, The problem is, when submiting the registration form via HTTP, the user nobody doesnt have the permissions to create this directory. So I tryed ftp_mkdir. And it worked. The problem is... the directory permissions where automatically set to 655. How can this be changed? Chmod will not work here, because the user is nobody.
PHP - Creating DB
i have a form with textbox default value='10', i want to add to database, and changes made on this page will update into database. this is my form field : <input type='text' size='1' name='$i' value='10' /> $i is for loop that prints outs textbox What column do i create in mysql db and how do i assign the each value of textbox ? for example if i create table example... Create example(date date, qty int); how do i insert each textbox value and each day date into database?
Creating PDF
I need to create a pdf on the fly from 6 fields of my database. What my question is, is how can I make sure that the pdf created is in the landscape profile, not the portrait profile? I have never created PDF's on the fly from a db before.
Help With Login
The problem is that the very last part of the code is not working the last if..else condition that has been set doesnt work, ie, when session remains and cookie expires...whenever there is such a condition a few notices are displayed and nothing else.. } else if (!isset($_COOKIE['user'])) { if (session_is_registered("password")) { echo "else if part"; } }?>
|