코드를 확인 php.Plz에비밀번호 나는를 만드는 모두의 ... 내가 뭐하는 거지 무엇을 말하고 page..NOw 내 집에 링크 암호 변경이
- 먼저 변경하기되지 않는다 html 양식은 edit_profile.php라는 이름으로 세 개의 textboxes 이전 암호, 새 암호, password를 확인합니다. 암호 변경을위한 홈 페이지 링크로이 페이지를 캡슐화했습니다.
- 다음 페이지가 내가있는 내가 새 비밀번호 경우 comaparing하고 edit_profile1.php 이름을 지정하고 확인 암호가되어 같거나
- 그럼 내가 암호로 데이터를 검색하는 쿼리 = 이전 암호를 만들기하지 않도록 설계 한
그러나 이 페이지는 내가 두 파일 모두 당신에게 코드를 제공하고 마지막에 내가 ... 내가 직면하고 어떤 종류의 오류
edit_profile.php
<?php
session_start();
?>
<html>
<body bgcolor="pink">
<table cellpadding="10" cellspacing="6" align="center" width="500">
<form name="form" action="edit_profile1.php" method="POST" >
<tr>
<td><b><i>Your Username</i></b></td>
<td><input type="text" name="username" id="username" size="30" maxlength="30" value="<?php echo $_SESSION['employee']['username']; ?>" disabled="disabled"></td>
</tr>
<tr>
<td><b><i>Old Password</i></b></td>
<td><input type="password" name="opassword" id="opassword" size="30" maxlength="30" value="" ></td>
</tr>
<tr>
<td><b><i>New Password</i></b></td>
<td><input type="password" name="npassword" id="npassword" size="30" maxlength="30" value="" ></td>
</tr>
<tr>
<td><b><i>Confirm Password</i></b></td>
<td><input type="password" name="cpassword" id="cpassword" size="30" maxlength="30" value="" ></td>
</tr>
<tr>
<td align="center" colspan="100"> <input type="submit" name="submit" value="Change Password"></td>
</tr>
</table>
</body>
</html>
다음 페이지
당신을 말할 것이다 working.Now 아니다오류 :
내가 오류가 Thhere 내 프로그램 자체를 실행하려고 할 때마다 내가 wrong.In 하락하고 어디에서 받고 있지 않다
이제 데이터베이스 암호와 이전 암호를 macthing에 약간의 문제는 데이터베이스 난 단지 하나의 사용자 row.Plz 말해 무엇이 오류입니까
코드가 엉망인 것 같습니다. '$ a','$ b','$ c'보다 더 명확한 변수 이름을 사용해야합니다! – lamas