###前提・実現したいこと
formタグが閉じられていなくsendボタンを押すとエラーが生じる
だから、formタグを閉じたい。
###発生している問題・エラーメッセージ
<form>のところで、Tag start is not closedと出ている。 </form>のところで、 Closing tag matches nothing と出ている。###該当のソースコード
htmlに
<div class="container" id="photoform"> <form action="/accounts/upload_save/' method="POST" enctype="multipart/form-data"> {% csrf_token %} <div class="input-group"> <label class="input-group-btn" style="width: 30%;"> <span class="btn btn-primary btn-lg"> ファイルを選択する① <input type="file" name="image" style="display: none"> </span> </label> <input type="text" class="form-control" readonly=""> </div> <div class="input-group"> <label class="input-group-btn" style="width: 30%;"> <span class="btn btn-primary btn-lg"> ファイルを選択する② <input type="file" name="image2" style="display: none"> </span> </label> <input type="text" class="form-control" readonly=""> </div> <div class="input-group"> <label class="input-group-btn" style="width: 30%;"> <span class="btn btn-primary btn-lg"> ファイルを選択する③ <input type="file" name="image3" style="display: none"> </span> </label> <input type="text" class="form-control" readonly=""> </div> <div class="form-group"> <input type="hidden" value="{{ p_id }}" name="p_id" class="form-control"> </div> <div class="col-xs-offset-2"> <div class="form-group"> <input type="submit" value="送信" class="form-control" style="width:30%;height:50px;font-size:25px;"> </div> </div> </form> </div>
と書きました。
###試したこと
タグの数の確認を行ったが、どのタグも数が合っていると思った。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。