현재 일부 입력/텍스트 필드가 비어 있는지 확인하는 양식 유효성 검사를하고 있습니다. 텍스트 필드의 텍스트를 저장하고 텍스트 필드의 다음 PHP 파일에 다시 입력해야합니다. 그것은 모든 입력과 함께 작동하지만 텍스트 필드에서는 작동하지 않습니다. 사이트가로드되지만 텍스트 필드가 비어 있습니다.PHP 폼 - 텍스트 필드 처리가 작동하지 않습니다.
당신을 기대해주세요!
HTML 부 :
<form id="formularheader" name="form" method="post" action="php/contact.php">
<fieldset id="personenInfo">
<p><label for="message" >Nachricht *</label></p>
<p><textarea name="nachricht" id="message" cols="40" rows="10" required=""></textarea></p>
<div class="terms">
<input type="checkbox" name="terms">
</div>
<p style="font-size: 80%; color: #292929; font-style: italic;">* notwendige Angaben</p>
</fieldset>
<input type="submit" id="submitButton" value="Abschicken">
</form>
PHP 부분 :
<?php
$message = $_POST['message'];
?>
<form id="formularheader" name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
<fieldset id="personenInfo">
<p><label for="message">Nachricht *</label></p>
<p><textarea name="nachricht" id="message" value="<? echo $message; ?>" cols="50" rows="10" required=""></textarea></p>
<div class="terms">
<input type="checkbox" name="terms">
</div>
<p style="font-size: 80%; color: #292929; font-style: italic;">* notwendige Angaben</p>
</fieldset>
<input type="submit" id="submitButton" value="Abschicken">
</form>
나는 TEXTAREA가 잘못된 제목 실례 것을 발견하면 빈 입력을