제출할 때 약간의 문제가 있습니다. 순서이 제출 값으로 인해 혼란 스럽습니다.
형태로{% for art in arts %}
<div class="art">
<div class="art-title">{{art.title}}</div>
<div class="art-created">{{art.created}}</div>
<pre class="art-art">
{% autoescape on %}
{{art.art}}
{% endautoescape %}
</pre>
<form action="editArt.html">
<input type="submit" name="edit" value={{art.title}}>
</form>
<hr>
</div>
{% endfor %}
, 나는 내가 데이터베이스를 조회하는 데 사용할 art.title의 값을 보유 할 수있는 "편집"버튼을 원하는에 : 여기
몇 가지 템플릿을 사용하여 코드 그렇게하면 가치 = {{art.title}}로 설정됩니다. 하지만이 버튼의 이름을 바꿔서 표시하고 싶습니다. 이 단추가 표시 될 때 "편집"을 표시 할 수 있지만 art.title의 값을 유지하기를 바랍니다. 어떻게 구현할 수 있습니까? 서버 코드에서
cool! 고마워요 :) – hakunami