php ajax textarea 주고 받을 때 500 에러

php ajax textarea 주고 받을 때 500 에러

QA

php ajax textarea 주고 받을 때 500 에러

본문

**** read.php 태그 부분

<div class="dat_ins">
<input type="hidden" name="bno" class="bno" value=<?=$bno?>>
<input type="hidden" name="dat_user" id="dat_user" class="dat_user" value="test">
<input type="password" name="dat_pw" id="dat_pw" class="dat_pw" size="15" placeholder="비밀번호">
<div style="margin-top:10px;">
<textarea name="rep_con" class="rep_con" id="rep_con"></textarea>
<button id="rep_btn" class="rep_btn">댓글</button>
</div>
</div>
<button onclick="add()">더해줘!</button>

******클릭시 이벤트 부분
function add() {
alert($("#rep_con").val());
        $.ajax({
            url: "reply_ok.php",
            type: "post",
            data: {
                dat_user : $("#dat_user").val(),
dat_pw : $("#dat_pw").val(),
rep_con : $("#rep_con").val(),
            }
        }).done(function(data) {
            $('#result').text(data);
        });
    }

********전달받는 부분
<?php
    $a = $_POST['dat_user'];
$userpw = password_hash($_POST['dat_pw'], PASSWORD_DEFAULT);
$rep_con : $_POST['rep_con'];

    echo($a."/".$userpw."/".$rep_con);
?>

다 전송이 되는데 textarea에서 보내는 값 때문에 500에러가 뜹니다 ㅠㅠ혹시 왜그럴까요?

이 질문에 댓글 쓰기 :

답변 1

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

회원로그인

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