I am trying for reset password module in a project. The resetpwd.php file gets the reset password and passing on the form variables to the updatepwd.php file for updating into database. $_POST function is called successfully when submit key is pressed but form variables are not passed on the updatepwd.php file.
resetpwd.php
<form id='frdpwd' method ="post" action="/updatepwd.php" autocomplete="off">
<label for="Name">Name :</label>
<input type="text" id="name" name="name" disabled = "disabled" size =25 value="<?php echo $name; ?>" >
<label for="email">Email ID :</label>
<input type="email" id="email" name="email" disabled = "disabled" size =25 value="<?php echo $email; ?>" >
<input type="password" id="pwd" name="pwd" size = 25 placeholder="Your password (Required).." onkeyup='check();'>
<input type="submit" name = "resetpwdsubmit" value="Submit" >
<input type="reset" value="Reset">
</form>
updatepwd.php
<?php
if(isset($_POST["resetpwdsubmit"])){
$rname = $_POST["name"]);
$remail = strtolower($_POST["email"]);
$rpwd = $_POST["pwd"];
$rcpwd = $_POST["cpwd"];
echo "<script type='text/javascript'>alert('Check : " . $rname . "');</script>";
if($rpwd==$rcpwd && $rname!="" && $remail!="" && $rpwd!=""){
echo "<script type='text/javascript'>alert('ready to update the pwd : " . $_POST["pwd"] . "');</script>";
}
}
?>