Tüm bu kodu dikkatli bir şekilde kontrol ettim ama yine de neden çalışmadığından emin değil. Hata ı hala gösterir tüm seçenekleri doldururkenPHP Form Doğrulama Kodu
<?php
if (!empty($_POST['username']) && !empty($_POST['password']) && !empty($_POST['password_again']) && !empty($_POST['gender']) && !empty($_POST['info'])){
$username = $_POST['username'];
}
else{
echo "You need to fill all fields";
}
?>
<!DOCTYPE HTML>
<html>
<body>
<form method= "post">
<h2>Register</h2>
username:<input type ="text" name ="usename"/><br/>
password:<input type ="password" name ="password"/><br/>
password again:<input type ="password" name ="password_again"/><br/>
Gender: male<input type ="radio" value="male" name ="gender"/> female<input type ="radio" value="female" name ="gender"/><br/>
Tell us about yourself:<br/>
<textarea name="info">
</textarea>
<br/>
<input type ="submit" value = "submit"/>
</form>
</body>
</html>
değiştirmek 'in ' –
fusion3k