Showing
2 changed files
with
6 additions
and
10 deletions
... | @@ -5,12 +5,11 @@ var db = require('../lib/db'); | ... | @@ -5,12 +5,11 @@ var db = require('../lib/db'); |
5 | /* GET home page. */ | 5 | /* GET home page. */ |
6 | 6 | ||
7 | router.post('/starting' , (req,res) => { | 7 | router.post('/starting' , (req,res) => { |
8 | + if (req.body.action == "ontime") | ||
8 | res.redirect(`/Cname/${req.body.name}/Cbirth/${req.body.birth}`); | 9 | res.redirect(`/Cname/${req.body.name}/Cbirth/${req.body.birth}`); |
9 | -}) | 10 | + else if (req.body.action == "forecast") |
10 | -//예보 추가 | ||
11 | -router.post('/forecasting' , (req,res) =>{ | ||
12 | res.redirect(`/Fname/${req.body.name}/Fbirth/${req.body.birth}`); | 11 | res.redirect(`/Fname/${req.body.name}/Fbirth/${req.body.birth}`); |
13 | -}) | 12 | +}); |
14 | 13 | ||
15 | router.get('/Fname/:name/Fbirth/:birth',(req,res)=>{ | 14 | router.get('/Fname/:name/Fbirth/:birth',(req,res)=>{ |
16 | 15 | ... | ... |
... | @@ -88,15 +88,12 @@ | ... | @@ -88,15 +88,12 @@ |
88 | <label>생년월일</label> | 88 | <label>생년월일</label> |
89 | <input type="text" name="birth" class="form-control" placeholder="971009" style="width:200px;" minlength="6" maxlength="6"> | 89 | <input type="text" name="birth" class="form-control" placeholder="971009" style="width:200px;" minlength="6" maxlength="6"> |
90 | <br><br><br> | 90 | <br><br><br> |
91 | - <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;"> | 91 | + <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;"> |
92 | + <br><br> | ||
93 | + <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;"> | ||
92 | </div> | 94 | </div> |
93 | 95 | ||
94 | </form> | 96 | </form> |
95 | - <form action="/forecasting" method="post"> | ||
96 | - <div class="/forecasting" method="post"> | ||
97 | - <input type="submit" value="미래확인" class="btn btn-default" style="..."> | ||
98 | - </div> | ||
99 | - </form> | ||
100 | </div> | 97 | </div> |
101 | 98 | ||
102 | </div> | 99 | </div> | ... | ... |
-
Please register or login to post a comment