<?php
$month=$_POST["month"];
$day=$_POST["day"];
if($month=3 and $day>=21 and $day<=31){
$horo = Aries;
}
else if ($month=4 and $day<=19 and $day>=1){
$horo = Aries;
}
else if ($month=4 and $day>=20 and $day<=30){
$horo = Taurus;
}
else if ($month=5 and $day<=20 and $day>=1){
$horo = Taurus;
}
else if ($month=5 and $day>=21 and $day<=31){
$horo = Gemini;
}
else if ($month=6 and $day<=20 and $day>=1){
$horo = Gemini;
}
else if ($month=6 and $day>=21 and $day<=30){
$horo = Cancer;
}
else if ($month=7 and $day<=22 and $day>=1){
$horo = Cancer;
}
else if ($month=7 and $day>=23 and $day<=31){
$horo = Leo;
}
else if ($month=8 and $day<=22 and $day>=1){
$horo = Leo;
}
else if ($month=8 and $day>=23 and $day<=31){
$horo = Virgo;
}
else if ($month=9 and $day<=22 and $day>=1){
$horo = Virgo;
}
else if ($month=9 and $day>=23 and $day<=30){
$horo = Libra;
}
else if ($month=10 and $day<=22 and $day>=1){
$horo = Libra;
}
else if ($month=10 and $day>=23 and $day<=31){
$horo = Scorpio;
}
else if ($month=11 and $day<=21 and $day>=1){
$horo = Scorpio;
}
else if ($month=11 and $day>=22 and $day<=30){
$horo = Sagittarius;
}
else if ($month=12 and $day<=21 and $day>=1){
$horo = Sagittarius;
}
else if ($month=12 and $day>=22 and $day<=31){
$horo = Capricorn;
}
else if ($month=1 and $day<=19 and $day>=1){
$horo = Capricorn;
}
else if ($month=1 and $day>=20 and $day<=31){
$horo = Aquarius;
}
else if ($month=2 and $day<=18 and $day>=1){
$horo = Aquarius;
}
else if ($month=2 and $day>=19 and $day<=28){
$horo = Pisces;
}
else if ($month=3 and $day<=20 and $day>=1){
$horo = Pisces;
}
else {$horo = error;
}
echo "Your name is $_POST[name].<br>";
echo "Your gender is $_POST[gender]<br>";
echo "Your date of birth is $_POST[day]/ $_POST[month]<br>";
echo "$horo"
?>
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
이상인데요 month랑 day 값을 받아온건데 이상하게
어느 월일을쳐도 Aries만 출력됩니다 ㅠㅠ 어디서문제가발생한거죠