code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| <?php require_once $_SERVER['DOCUMENT_ROOT'].'/top.php'; include_once $_SERVER['DOCUMENT_ROOT'].'/header.php'; ?>
<!-- <div class=WriteDivStyle> <a href="http://<?=$_SERVER['HTTP_HOST']?>/write.php" class=Writebtn>글쓰기</a> </div> <div class=WriteDivStyle> <a href="http://<?=$_SERVER['HTTP_HOST']?>/list.php" class=Writebtn>목록</a> </div> <br><br><br> -->
<form name="write_form" action="./write_process.php" method="POST"> <?php if($_SESSION['is_signin'] == 'y') { echo '<input type ="hidden" name="member_idx" value="<?=$_SESSION[\'member_idx\']?>">'; echo '<input type ="hidden" name="writer" value="<?=$_SESSION[\'writer\']?>">'; } else {
} ?> <table class=WriteTableStyle> <tr class=WirteTrStyle> <th class=WriteTdStyle>제목</td> <td class=WriteTdStyle><input type="text" name="subject" size="100" style="width: 100%; height: 40px;" autofocus required></td> </tr> <tr class=WirteTrStyle> <th class=WriteTdStyle>내용</td> <td class=WriteTdStyle><textarea name="content" cols="100" rows="10"></textarea></td> </tr> </table>
<div><input type="submit" value="저장"></div> </form>
<?php include_once($_SERVER['DOCUMENT_ROOT']."/footer.php"); ?>
|
Author:
Slay
Permalink:
http://sean-baek.github.io/2022/08/27/2022-08-27-web-dev-write-php/
License:
Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?