글쓰기 할때 사용자 사용자 정보 저장 방법

글쓰기 할때 사용자 사용자 정보 저장 방법

QA

글쓰기 할때 사용자 사용자 정보 저장 방법

본문

게시물 글 작성할때 사용자 정보중

 

이메일, 핸드폰번호, 같은걸 게시판 DB 에 저장할려고 하는데 방법을 모르겠네요 ㅠ

 

 

이 질문에 댓글 쓰기 :

답변 1

전제 조건

 

         1. 회원가압을 하고 로그인 한 상 태

/bbs/login_check.php

// 회원아이디 세션 생성
set_session('mb_level', $mb['mb_level']);
set_session('ss_mb_id', $mb['mb_id']);​

set_session('ss_mb_email' , $mb[mb_email ]);​


set_session('ss_mb_id', $mb['mb_homepage']);
set_session('ss_mb_tel', $mb['mb_tel']);
set_session('ss_mb_hp', $mb['mb_hp']);​

 

 

/skin/bood/basic/write.skin.php

 

 


        <tr>
            <th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
            <td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
        </tr>

        <tr>
            <th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>
            <td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
        </tr>
        <tr>
            <th scope="row"><label for="wr_1">전화1</label></th>
            <td><input type="text" name="wr_1" value="<?php echo $ss_mb_tel ?>" id="wr_1"  size="50" maxlength="100"></td>
        </tr>


        <tr>
            <th scope="row"><label for="wr_2">전화2</label></th>
            <td><input type="text" name="wr_2" value="<?php echo $ss_mb_hp?>" id="wr_2"  size="50" maxlength="100"></td>
        </tr>

 

 


        <tr>
            <th scope="row"><label for="wr_email">이메일</label></th>
            <td><input type="text" name="wr_email" value="<?php echo $ss_mb_email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
        </tr>

        <tr>
            <th scope="row"><label for="wr_homepage">홈페이지</label></th>
            <td><input type="text" name="wr_homepage" value="<?php echo $mb_homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
        </tr>

 

 

         2. 회원가입이 없고 아무나 글쓸때

 

/skin/bood/basic/write.skin.php

 

60번째

 


        <tr>
            <th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
            <td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
        </tr>

        <tr>
            <th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>
            <td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
        </tr>
        <tr>
            <th scope="row"><label for="wr_1">전화1</label></th>
            <td><input type="text" name="wr_1" value="<?php echo $write[wr_1] ?>" id="wr_1"  size="50" maxlength="100"></td>
        </tr>


        <tr>
            <th scope="row"><label for="wr_2">전화2</label></th>
            <td><input type="text" name="wr_2" value="<?php echo $write[wr_2] ?>" id="wr_2"  size="50" maxlength="100"></td>
        </tr>

        <tr>
            <th scope="row"><label for="wr_3">전화3</label></th>
            <td><input type="text" name="wr_3" value="<?php echo $write[wr_3] ?>" id="wr_3"  size="50" maxlength="100"></td>
        </tr>

 

 

        <tr>
            <th scope="row"><label for="wr_email">이메일</label></th>
            <td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
        </tr>

        <tr>
            <th scope="row"><label for="wr_homepage">홈페이지</label></th>
            <td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
        </tr>

 

 

 

 

 

 

대충 이런식인데요

답변을 작성하시기 전에 로그인 해주세요.
전체 39
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT