| | |
username and passwor protected webpage using php and mysql
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2008
Posts: 3
Reputation:
Solved Threads: 0
Hello im juner, a new php developer, i already finished with a register.php, login.php file. My problem is when the main.php is accessable after login by correct username and password stored in mysql database, the main.php composed of the following link:
changepassword.php
addsponsor.php
deletesponsor.php
when i click the changepassword.php link then the changepassword.php is not protected with the inputted username and password in login.php.
what i am asking now is, is there anybody has the idea with this problem? im about a month of searching in the internet but i never found a solution so help me.
changepassword.php
addsponsor.php
deletesponsor.php
when i click the changepassword.php link then the changepassword.php is not protected with the inputted username and password in login.php.
what i am asking now is, is there anybody has the idea with this problem? im about a month of searching in the internet but i never found a solution so help me.
are you asking about how to send user name and password to server with security ?
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
If you want changepassword to be able to check and/or change the password then you will need to make the current id and password available or at least set a flag to show that the user is properly logged in. You will want to save this as a SESSION variable so you can access it in any module that needs it.
•
•
Join Date: Aug 2008
Posts: 3
Reputation:
Solved Threads: 0
Yes what i want is to send the username and password to the changepassword.php without another login because that case i already logged in main.php which composed of the changepassword.php link. when i click the changepassword link the username and password will be send also for the security of the changepassword.php link.
i am hoping for your help. thank for the reply.
i am hoping for your help. thank for the reply.
during changing password you dont have to send user name and password to client, instead just ask current password and new password to the user, take those password to server and validate the current password, if current password is matching, reset the new password.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
![]() |
Similar Threads
- Looking for PHP / MySQL Developer (Web Development Job Offers)
- Looking for a PHP/MYSQL Programmer (Web Development Job Offers)
- Need Highly Experienced PHP/MySQL Programmer $15-$25/hour (Web Development Job Offers)
- PHP/MySQL Programmer Position (Web Development Job Offers)
Other Threads in the PHP Forum
- Previous Thread: Preventing an SQL injection
- Next Thread: Developing a cake php application
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl data database date directory display download dynamic echo email error file files folder foreach form forms function functions google href htaccess html httppost image include insert integration ip java javascript joomla limit link links login loop mail md5 menu mlm mod_rewrite multiple mysql mysql_real_escape_string oop parse paypal pdf php problem query radio random recursion regex remote replace script search server session sessions sms soap source space sql structure syntax system table tutorial update upload url validation validator variable video volume votedown web xml youtube





