프로젝트에 codeigniter를 사용하고 있습니다. html 측면에서, 나는 체크 된 것을 볼 수있는 3 개의 체크 박스를 가지고 데이터베이스에 값을 저장한다. 이제 값을 가져 와서 해당 확인란을 선택합니다.데이터베이스에서 가져온 값에 따라 올바른 확인란을 선택하십시오.
내 체크 박스는 내가 값이 값 경사가 데이터베이스에 저장됩니다, 경사와 입력 요소를 확인하는 경우 예를 들어, 그래서
<div class="span2">
<label class="radio">
<input class="attrInputs" type="radio" name="shoulder" value="flat">
Flat
</label>
<img src="http://placehold.it/126x126/cbcbcb" class="push-top">
</div>
<div class="span2">
<label class="radio">
<input class="attrInputs" type="radio" name="shoulder" value="regular">
Regular
</label>
<img src="http://placehold.it/126x126/cbcbcb" class="push-top">
</div>
<div class="span2 border-right">
<label class="radio">
<input class="attrInputs" type="radio" name="shoulder" value="sloped">
Sloped
</label>
<img src="http://placehold.it/126x126/cbcbcb" class="push-top">
</div>
다음과 같이있을 때의 그 확인 입력과의 사전로드에 사용자가 로그인 값이 경 사진
미리 감사드립니다!
을 당신이 [HTML 양식]를 읽을 필요가 있다고 생각 (http://www.w3schools.com/html/html_forms.asp), [CodeIgniter의 데이터 입력] (http://ellislab.com/codeigniter/user-guide/database/active_record.html#insert) 및 [CodeIgniter의 양식 도우미] (http://ellislab.com/codeigniter/user-guide/helpers/form_helper.html) – hohner