0

Quick question. My code passes check50 and submit50 but for whatever reason I can't seem to get the actual program to work i.e. when I click the compare button on my form nothing happens. Here is my form code - I can't find anything wrong with the compare button

{% extends "layout.html" %}

{% block body %}

<div class="col">
    <form action="/compare" enctype="multipart/form-data" method="post">

        Choose File: <input type="file" name="file1"><br>
        Choose File: <input type="file" name="file2"><br>
        lines: <input type="radio" name="algorithm" value = "lines" ><br>
        sentences: <input type="radio" name="algorithm" value = "sentences" ><br>
        substrings: <input type="radio" name="algorithm" value = "substrings" ><br>
        Length: <input type="number" name="length"><br>

    </form>

    <button type = "submit">compare</button>


</div>

{% endblock %}

Here is my code below

0

Move your button inside the form and it should work.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .