g

include 페이지안에 form이 또있어서 그런지 글쓰기가 안됩니다

include 페이지안에 form이 또있어서 그런지 글쓰기가 안됩니다

[a.html]
<form name="form" id="form"> <--이걸 지우면 글쓰기가 되는거보니 form 때문인것같습니다
<select>
<option value="1"></option>
<option value="2"></option>
</select>
</form>


[b.html] 글쓰기 페이지
<form name="form2" method="post" onsubmit="return submit(this);" enctype="multipart/form-data">
<? include "a.html"; ?>
<input name="name" itemname="이름" value="<?=$name?>">
</form>


include페이지 그대로 하고 글쓰기페이지 제대로 돌아가게 하려는데요
form의 action을 어떻게 바꿔줘야되나요 자세한 설명 부탁드립니다


[a.html] 여기에 여러 셀렉트가 if문마다 들어가있구요
submit 버튼없이 선택하면 바로 페이지로 넘어가는 식인데요 모든페이지에 include 되있어요
어떻게 해야할지 난감하네요
|

댓글 3개

참고하세요
http://www.gmliveweb.com/contents/board.php?board=script&sck=wr_subject&scv=%C6%FB&wr_id=70
<select id="아이디" name="이름" onchange="SelTarget()">
<option value="http://www.naver.com">네이버</option>
<option value="http://kr.yahoo.com">야후</option>
<option value="http://www.daum.net">다음</option>
</select>
<script type="text/javascript">
function SelTarget()
{
var val = document.getElementById("아이디").value;
document.location.href = val;
}
</script>
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 1,736
14년 전 조회 1,303
14년 전 조회 1,858
14년 전 조회 1,514
14년 전 조회 1,289
14년 전 조회 1,664
14년 전 조회 1,369
14년 전 조회 1,579
14년 전 조회 1,600
14년 전 조회 1,794
14년 전 조회 1,666
14년 전 조회 3,896
14년 전 조회 1,512
14년 전 조회 1,320
14년 전 조회 1,987
14년 전 조회 1,910
14년 전 조회 1,788
14년 전 조회 1,565
14년 전 조회 3,839
14년 전 조회 1,730
🐛 버그신고