날자계산 질문입니다.. ㅡㅡ;;
이거 별짓다해봐도 계속 오류만 나네요.
------------------------------------------------- 소스 ----------
<tr>
<td>생년월일</td>
<td><input type=text name="by_birthday" value="<?=$by_birthday?>"> </td>
<td colspan=3>
키<input type=text name="by_height" value="<?=$by_height?>">
몸무게 <input type=text name="by_weight" value="<?=$by_weight?>">
</td>
</tr>
<input type=hidden name="ba_50" value="<?=$ba_50?>">
<input type=hidden name="ba_100" value="<?=$ba_100?>">
<input type=hidden name="ba_365" value="<?=$ba_365?>">
------------------------------------------------------------------------
소스의 일부분인데요..
위에 by_birthday 부분의 변수에 입력받은 값에 ;
날자계산 소스
// 기준일
$temp_day = '2008-07-01';
$plus_day = date("Y-m-d", strtotime("+50 day", strtotime($temp_day)));
echo $plus_day; // 7.1 + 50일 날짜 출력
를 적용하여 50일..100일...356일을 더해서.. 각 히든 변수에 넣어 저장하려고 합니다.
어찌해야 하는지..
<input type=hidden name="ba_50" value="<?
$ba_50 = date("Y-m-d", strtotime("+50 day", strtotime($by_birthday)))
>">
이렇게 해야 하나요 ? ㅡㅡ;;
도움주시면 정말 감사하겠습니다.
이거 별짓다해봐도 계속 오류만 나네요.
------------------------------------------------- 소스 ----------
<tr>
<td>생년월일</td>
<td><input type=text name="by_birthday" value="<?=$by_birthday?>"> </td>
<td colspan=3>
키<input type=text name="by_height" value="<?=$by_height?>">
몸무게 <input type=text name="by_weight" value="<?=$by_weight?>">
</td>
</tr>
<input type=hidden name="ba_50" value="<?=$ba_50?>">
<input type=hidden name="ba_100" value="<?=$ba_100?>">
<input type=hidden name="ba_365" value="<?=$ba_365?>">
------------------------------------------------------------------------
소스의 일부분인데요..
위에 by_birthday 부분의 변수에 입력받은 값에 ;
날자계산 소스
// 기준일
$temp_day = '2008-07-01';
$plus_day = date("Y-m-d", strtotime("+50 day", strtotime($temp_day)));
echo $plus_day; // 7.1 + 50일 날짜 출력
를 적용하여 50일..100일...356일을 더해서.. 각 히든 변수에 넣어 저장하려고 합니다.
어찌해야 하는지..
<input type=hidden name="ba_50" value="<?
$ba_50 = date("Y-m-d", strtotime("+50 day", strtotime($by_birthday)))
>">
이렇게 해야 하나요 ? ㅡㅡ;;
도움주시면 정말 감사하겠습니다.
댓글 1개
sjsjin
17년 전
<input type=hidden name="ba_50" value="<?=date("Y-m-d", strtotime("+50 day", strtotime($by_birthday)));?>">
<input type=hidden name="ba_100" value="<?=date("Y-m-d", strtotime("+100 day", strtotime($by_birthday)));?>">
단, $by_birthday 라는 변수는 이전 페이지에서 넘어오는 값이라야 합니다.(post/get 상관없고)
<input type=hidden name="ba_100" value="<?=date("Y-m-d", strtotime("+100 day", strtotime($by_birthday)));?>">
단, $by_birthday 라는 변수는 이전 페이지에서 넘어오는 값이라야 합니다.(post/get 상관없고)
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2130 | 17년 전 | 1182 | ||
| 2129 |
ⓧ힘내세요
|
17년 전 | 2237 | |
| 2128 | 17년 전 | 2873 | ||
| 2127 | 17년 전 | 4057 | ||
| 2126 | 17년 전 | 3144 | ||
| 2125 | 17년 전 | 1407 | ||
| 2124 | 17년 전 | 1707 | ||
| 2123 | 17년 전 | 2238 | ||
| 2122 | 17년 전 | 1544 | ||
| 2121 | 17년 전 | 1723 | ||
| 2120 | 17년 전 | 2718 | ||
| 2119 | 17년 전 | 2145 | ||
| 2118 | 17년 전 | 1798 | ||
| 2117 |
아름다운세상
|
17년 전 | 4207 | |
| 2116 | 17년 전 | 3049 | ||
| 2115 | 17년 전 | 1435 | ||
| 2114 |
아름다운세상
|
17년 전 | 3570 | |
| 2113 | 17년 전 | 2795 | ||
| 2112 | 17년 전 | 2076 | ||
| 2111 | 17년 전 | 1294 | ||
| 2110 | 17년 전 | 2333 | ||
| 2109 | 17년 전 | 2068 | ||
| 2108 | 17년 전 | 1992 | ||
| 2107 |
휴전합시다
|
17년 전 | 1919 | |
| 2106 | 17년 전 | 1168 | ||
| 2105 |
|
17년 전 | 1872 | |
| 2104 | 17년 전 | 2929 | ||
| 2103 | 17년 전 | 1434 | ||
| 2102 | 17년 전 | 1671 | ||
| 2101 | 17년 전 | 1354 | ||
| 2100 | 17년 전 | 1601 | ||
| 2099 | 17년 전 | 1575 | ||
| 2098 | 17년 전 | 1446 | ||
| 2097 | 17년 전 | 2565 | ||
| 2096 | 17년 전 | 2329 | ||
| 2095 | 17년 전 | 2110 | ||
| 2094 | 17년 전 | 1421 | ||
| 2093 | 17년 전 | 2434 | ||
| 2092 | 17년 전 | 4263 | ||
| 2091 | 17년 전 | 2751 | ||
| 2090 | 17년 전 | 1664 | ||
| 2089 | 17년 전 | 1857 | ||
| 2088 | 17년 전 | 3239 | ||
| 2087 | 17년 전 | 2236 | ||
| 2086 | 17년 전 | 3833 | ||
| 2085 | 17년 전 | 1680 | ||
| 2084 | 17년 전 | 2287 | ||
| 2083 | 17년 전 | 2109 | ||
| 2082 | 17년 전 | 1615 | ||
| 2081 | 17년 전 | 2129 | ||
| 2080 |
letsgolee
|
17년 전 | 1921 | |
| 2079 | 17년 전 | 1961 | ||
| 2078 | 17년 전 | 3072 | ||
| 2077 | 17년 전 | 2149 | ||
| 2076 | 17년 전 | 1443 | ||
| 2075 | 17년 전 | 1462 | ||
| 2074 | 17년 전 | 2129 | ||
| 2073 | 17년 전 | 3207 | ||
| 2072 | 17년 전 | 2138 | ||
| 2071 |
휴전합시다
|
17년 전 | 1534 | |
| 2070 | 17년 전 | 4249 | ||
| 2069 | 17년 전 | 2043 | ||
| 2068 | 17년 전 | 3463 | ||
| 2067 | 17년 전 | 6039 | ||
| 2066 | 17년 전 | 1484 | ||
| 2065 |
letsgolee
|
17년 전 | 1655 | |
| 2064 | 17년 전 | 1235 | ||
| 2063 | 17년 전 | 1349 | ||
| 2062 |
vicky
|
17년 전 | 2875 | |
| 2061 | 17년 전 | 1909 | ||
| 2060 |
카프카07
|
17년 전 | 2595 | |
| 2059 | 17년 전 | 1310 | ||
| 2058 | 17년 전 | 3184 | ||
| 2057 | 17년 전 | 2165 | ||
| 2056 | 17년 전 | 2612 | ||
| 2055 | 17년 전 | 1407 | ||
| 2054 | 17년 전 | 1759 | ||
| 2053 | 17년 전 | 1150 | ||
| 2052 |
|
17년 전 | 1207 | |
| 2051 | 17년 전 | 1793 | ||
| 2050 | 17년 전 | 1233 | ||
| 2049 | 17년 전 | 4313 | ||
| 2048 | 17년 전 | 1512 | ||
| 2047 | 17년 전 | 2010 | ||
| 2046 |
카프카07
|
17년 전 | 7092 | |
| 2045 | 17년 전 | 1385 | ||
| 2044 | 17년 전 | 1904 | ||
| 2043 | 17년 전 | 3136 | ||
| 2042 | 17년 전 | 1228 | ||
| 2041 |
카프카07
|
17년 전 | 1986 | |
| 2040 | 17년 전 | 1167 | ||
| 2039 |
smilesol
|
17년 전 | 1857 | |
| 2038 | 17년 전 | 2158 | ||
| 2037 |
|
17년 전 | 2974 | |
| 2036 | 17년 전 | 1249 | ||
| 2035 |
|
17년 전 | 1345 | |
| 2034 |
ㅣ곰탱이ㅣ
|
17년 전 | 1565 | |
| 2033 |
|
17년 전 | 1234 | |
| 2032 | 17년 전 | 4361 | ||
| 2031 | 17년 전 | 3901 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기