이승규

서브밋 버튼 수정

......@@ -5,12 +5,11 @@ var db = require('../lib/db');
/* GET home page. */
router.post('/starting' , (req,res) => {
res.redirect(`/Cname/${req.body.name}/Cbirth/${req.body.birth}`);
})
//예보 추가
router.post('/forecasting' , (req,res) =>{
res.redirect(`/Fname/${req.body.name}/Fbirth/${req.body.birth}`);
})
if (req.body.action == "ontime")
res.redirect(`/Cname/${req.body.name}/Cbirth/${req.body.birth}`);
else if (req.body.action == "forecast")
res.redirect(`/Fname/${req.body.name}/Fbirth/${req.body.birth}`);
});
router.get('/Fname/:name/Fbirth/:birth',(req,res)=>{
......
......@@ -88,15 +88,12 @@
<label>생년월일</label>
<input type="text" name="birth" class="form-control" placeholder="971009" style="width:200px;" minlength="6" maxlength="6">
<br><br><br>
<input type="submit" value="운명보기" class="btn btn-danger" style="font-family: 'Yeon Sung', cursive; width:100px;font-weight: bold; font-size: 18px; background-color: white;">
<input type="submit" name="action" value="운명보기" class="btn btn-danger" style="font-family: 'Yeon Sung', cursive; width:100px;font-weight: bold; font-size: 18px; background-color: white;">
<br><br>
<input type="submit" name="action" value="미래확인" class="btn btn-danger" style="font-family: 'Yeon Sung', cursive; width:100px;font-weight: bold; font-size: 18px; background-color: white;">
</div>
</form>
<form action="/forecasting" method="post">
<div class="/forecasting" method="post">
<input type="submit" value="미래확인" class="btn btn-default" style="...">
</div>
</form>
</div>
</div>
......