0
일반적인 주제이기는하지만 검색 중에 잠시 후에 답변을 찾지 못했습니다.폼에서 PHP로 데이터를 전달하는 경우
내가보기에이 HTML이 : OUPUT하는, 당신이 볼 수있는
<div class="control-group">
<label class="control-label">Tipo de Socio</label>
<div class="controls">
<label class="checkbox line">
<input type="checkbox" id="registered" value="registered" name="type[]" /> Registrado
</label>
<label class="checkbox line">
<input type="checkbox" value="notregistered" name="type[]"/> Pre-Registrado
</label>
</div>
</div>
, 입력에서 캡처 한 정보를 배열로 발송에 실패한다은 다음과 같습니다
array (size=2)
0 => string 'u.status = 2' (length=12)
1 => string 'u.status = 1' (length=12)
내가 원하는 달성하기 위해 설명 이름과 같은 하위 키 이름을 지정하는 것입니다 :
array (size=2)
registered => string 'u.status = 2' (length=12)
notregistered => string 'u.status = 1' (length=12)
이 하위 키 이름을 보내야합니다 디 바로 HTML에서, 또는 내가이 일을 PHP에서 함수를해야합니까?
그래, 내가 부탁하고 – Limon