채택완료

form 태그의 질문

2021-11-26 (금) 11:06:55 5,226
Copy
<form action="123.php" method="post">

<input type="text">

</form>

<form action="123.php" method="post">

<input type="text">

' 내용~~~

'내용~~~

'내용~~~

</form>

<form action="123.php" method="post">

<input type="text">

내용~~~

 

</form>

<input type="submit" value = 신청하기>

폼태그가 이렇게 잘게잘게 잘라져 잇는데 서브밋 버튼 누르면 폼이 다 넘겨지나요??

아니면 제이쿼리로 잘게 잘라진거 합쳐지게 하는 방법이 잇나요??

답변 3개

채택된 답변
+20 포인트
2021-11-26 (금) 11:10:34
<form action="123.php" method="post">
<input type="text">
<input type="submit" value = 신청하기>

</form>

의 형태로 form  을 하나만 쓰시는게 제일 좋습니다

2021-11-26 (금) 11:20:29

윗분 말처럼 form 안에 있어야지만 작동합니다

submit은 form안에 있어야 됩니다..

합치는 방법있습니다만... 굳이 같은곳으로 보내시는데 123.php 폼을 쪼개신 이유가...

답변을 작성하려면 로그인이 필요합니다.