그냥이 질문을 할 수 있도록 계정을 만들었습니다 : 왜 post 메서드가 이러한 simples 파일에서 작동하지 않습니까? 파일 1간단한 POST 메서드가 작동하지 않습니다.
은코드 :
<form method="POST" action="caralho.php">
<input type="text" id="titulo_cardapio" />
<input type="submit" />
</form>
파일 2, "caralho.php"나는 "caralho.php"를로드 할 때
<?php
$crlh = $_POST['titulo_cardapio'];
echo $crlh;
?>
이 간단한 형태 든, 변수를 게시하지 않습니다 제출 버튼을 클릭하면 다음과 같은 메시지가 나타납니다.
알림 : 정의되지 않은 색인 : titulo_cardapio in C : \ xampp \ htdocs \ cardapio \ caralho.php 2 행
어떻게 된 일입니까? 이
다음을 확인하십시오 : http://stackoverflow.com/questions/1397592/difference-between-and-name-attributes-in-html –