이 코드는 다른 날에 작동했지만 이제는 양식이 제출되지 않습니다. 다른 페이지에 포함되어 있지만 내가 말했듯이 단독 파일로 볼 때 작동하지 않습니다. 문제가 무엇인지, 왜 양식이 전혀 제출되지 않는지 확인하려면 신선한 눈이 필요할 것입니다.
<section>
<div class="v-form">
<h2 class="ArchiveFont">Login</h2>
<form name="login" method="post" action="profile.php?action=login" class="v-form">
<label for="login-email">Email</label>
<input name="login-email" type="email" placeholder="Email">
<label for="login-password-">Password</label>
<input type="password" name="login-password" placeholder="Password">
<?php if($loginerrorflag) echo "<small>$loginerrormsg</small>"; ?>
<button type="submit" form="login">Login</button>
</form>
</div>
</section>
<section>
<div class="v-form alternatingBKG">
<h2 class="ArchiveFont">Register</h2>
<form name="registration" method="post" action="profile.php?action=register" class="v-form">
<label for="reg-email">Email</label>
<input type="email" name="reg-email" placeholder="Email"
<?php if(isset($_GET['email']))
echo "value=\"" . $_GET['email'] . "\""; ?>>
<label for="reg-password-1">Password</label>
<input type="password" name="reg-password-1" placeholder="Password">
<label for="reg-password-2">Confirm Password</label>
<input type="password" name="reg-password-2" placeholder="Confirm Password">
<label for="f-name">First Name</label>
<input type="text" name="f-name" placeholder="First Name">
<label for="l-name">Last Name</label>
<input type="text" name="l-name" placeholder="Last Name">
<?php if($regerrorflag) echo "<small>$regerrormsg</small>"; ?>
<button type="submit" form="registration">Register</button>
</form>
</div>
</section>
게시 된 코드는 파일의 유일한 코드입니다. JS가 없으므로 제출 버튼이 아무 것도 트리거하지 않는 이유가 이해되지 않습니다. 특히 전에 작동했을 때. 도와주세요 :(
다음은 <input type="submit" value="Login/Register">
유효한 이메일 주소와 비밀번호 를 사용 하는 스 니펫입니다.
<section>
<div class="v-form">
<h2 class="ArchiveFont">Login</h2>
<form name="login" method="POST" action="profile.php?action=login" class="v-form">
<label for="login-email">Email</label>
<input name="login-email" type="email" placeholder="Email">
<label for="login-password-">Password</label>
<input type="password" name="login-password" placeholder="Password">
<?php if($loginerrorflag) echo "<small>$loginerrormsg</small>"; ?>
<input type="submit" value="login">
</form>
</div>
</section>
<section>
<div class="v-form alternatingBKG">
<h2 class="ArchiveFont">Register</h2>
<form name="registration" method="post" action="profile.php?action=register" class="v-form">
<label for="reg-email">Email</label>
<input type="email" name="reg-email" placeholder="Email"
<?php if(isset($_GET['email']))
echo "value=\"" . $_GET['email'] . "\""; ?>>
<label for="reg-password-1">Password</label>
<input type="password" name="reg-password-1" placeholder="Password">
<label for="reg-password-2">Confirm Password</label>
<input type="password" name="reg-password-2" placeholder="Confirm Password">
<label for="f-name">First Name</label>
<input type="text" name="f-name" placeholder="First Name">
<label for="l-name">Last Name</label>
<input type="text" name="l-name" placeholder="Last Name">
<?php if($regerrorflag) echo "<small>$regerrormsg</small>"; ?>
<input type="submit" value="Register">
</form>
</div>
</section>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다